Java String Empty emptyString()

Here you can find the source of emptyString()

Description

Return an empty String (immutable).

License

Open Source License

Return

An empty immutable String.

Declaration

public static final String emptyString() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   w  ww  .  j  a v a  2 s.  c  o  m
     * The empty String (immutable).
     *
     * @see #emptyString()
     */
    public static final String EMPTY_STRING = "";

    /**
     * Return an empty String (immutable).
     *
     * @return An empty immutable String.
     *
     * @see #EMPTY_STRING
     */
    public static final String emptyString() {
        return EMPTY_STRING;
    }
}

Related

  1. coerceValueIfNullOrEmpty(String s, String valueIfNullOrEmpty)
  2. emptyString(final String a, final String defaultString)
  3. emptyString(final String string)
  4. emptyString(Object s)
  5. emptyString(String s)