|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.String
public final class String
An immutable string of characters.
| Constructor Summary | |
|---|---|
String(char[] c,
int off,
int len)
Create a String from a character array. |
|
| Method Summary | |
|---|---|
char |
charAt(int index)
Return the character at the given index |
boolean |
equals(Object other)
Compares the String with an Object |
int |
length()
Return the length of the String in characters |
char[] |
toCharArray()
Converts the String into an array of characters |
String |
toString()
Returns itself. |
static String |
valueOf(Object aObj)
Converts an Object to a String |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait |
| Constructor Detail |
|---|
public String(char[] c,
int off,
int len)
c - the character arrayoff - the offset - usually 0len - the length of the String - must not be greater than c.length| Method Detail |
|---|
public int length()
public char charAt(int index)
public char[] toCharArray()
public static String valueOf(Object aObj)
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||