09.10.2014 Views

Download Scala Tutorial (PDF Version) - Tutorials Point

Download Scala Tutorial (PDF Version) - Tutorials Point

Download Scala Tutorial (PDF Version) - Tutorials Point

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compares two strings lexicographically, ignoring case differences.<br />

5<br />

6<br />

7<br />

8<br />

9<br />

10<br />

11<br />

12<br />

13<br />

14<br />

15<br />

16<br />

17<br />

18<br />

19<br />

20<br />

21<br />

22<br />

String concat(String str)<br />

Concatenates the specified string to the end of this string.<br />

boolean contentEquals(StringBuffer sb)<br />

Returns true if and only if this String represents the same sequence of characters as the specified<br />

StringBuffer.<br />

static String copyValueOf(char[] data)<br />

Returns a String that represents the character sequence in the array specified.<br />

static String copyValueOf(char[] data, int offset, int count)<br />

Returns a String that represents the character sequence in the array specified.<br />

boolean endsWith(String suffix)<br />

Tests if this string ends with the specified suffix.<br />

boolean equals(Object anObject)<br />

Compares this string to the specified object.<br />

boolean equalsIgnoreCase(String anotherString)<br />

Compares this String to another String, ignoring case considerations.<br />

byte getBytes()<br />

Encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new<br />

byte array.<br />

byte[] getBytes(String charsetName<br />

Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte<br />

array.<br />

void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)<br />

Copies characters from this string into the destination character array.<br />

int hashCode()<br />

Returns a hash code for this string.<br />

int indexOf(int ch)<br />

Returns the index within this string of the first occurrence of the specified character.<br />

int indexOf(int ch, int fromIndex)<br />

Returns the index within this string of the first occurrence of the specified character, starting the search at the<br />

specified index.<br />

int indexOf(String str)<br />

Returns the index within this string of the first occurrence of the specified substring.<br />

int indexOf(String str, int fromIndex)<br />

Returns the index within this string of the first occurrence of the specified substring, starting at the specified<br />

index.<br />

String intern()<br />

Returns a canonical representation for the string object.<br />

int lastIndexOf(int ch)<br />

Returns the index within this string of the last occurrence of the specified character.<br />

int lastIndexOf(int ch, int fromIndex)<br />

Returns the index within this string of the last occurrence of the specified character, searching backward<br />

starting at the specified index.<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!