public final class String {
       public String();
       public String(String value)
               throws NullPointerException;
       public String(StringBuffer buffer)
               throws NullPointerException;
       public String(char[] value)
               throws NullPointerException;
       public String(char[] value, int offset, int count)
               throws NullPointerException, IndexOutOfBoundsException;
       public String(byte[] ascii, int hibyte)
               throws NullPointerException;
       public String(byte[] ascii, int hibyte, int offset, int count)
               throws NullPointerException, IndexOutOfBoundsException;
       public String toString();
       public boolean equals(Object anObject);
       public int hashCode();
       public int length();
       public char charAt(int index);
       public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin)
               throws NullPointerException, IndexOutOfBoundsException;
       public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin)
               throws NullPointerException, IndexOutOfBoundsException;
       public char[] toCharArray();
       public boolean equalsIgnoreCase(String anotherString);
       public int compareTo(String anotherString)
               throws NullPointerException;
       public boolean regionMatches(int toffset, String other, int ooffset, int len)
               throws NullPointerException;
       public boolean regionMatches(boolean ignoreCase, int toffset,
                        String other, int ooffset, int len)
               throws NullPointerException;
       public boolean startsWith(String prefix)
               throws NullPointerException;
       public boolean startsWith(String prefix, int toffset)
               throws NullPointerException;
       public boolean endsWith(String suffix)
               throws NullPointerException;
       public int indexOf(int ch);
       public int indexOf(int ch, int fromIndex);
       public int indexOf(String str)
               throws NullPointerException;
       public int indexOf(String str, int fromIndex)
               throws NullPointerException;
       public int lastIndexOf(int ch);
       public int lastIndexOf(int ch, int fromIndex);
       public int lastIndexOf(String str)
               throws NullPointerException;
       public int lastIndexOf(String str, int fromIndex)
               throws NullPointerException;
       public String substring(int beginIndex);
       public String substring(int beginIndex, int endIndex);
       public String concat(String str)
               throws NullPointerException;
       public String replace(char oldChar, char newChar);
       public String toLowerCase();
       public String toUpperCase();
       public String trim();
       public static String valueOf(Object obj);
       public static String valueOf(char[] data)
               throws NullPointerException;
       public static String valueOf(char[] data, int offset, int count)
               throws NullPointerException, IndexOutOfBoundsException;
       public static String valueOf(boolean b);
       public static String valueOf(char c);
       public static String valueOf(int i);
       public static String valueOf(long l);
       public static String valueOf(float f);
       public static String valueOf(double d);
       public String intern();
}