Best Online Java String Class Method Tutorial

Page 1

http://www.javatpoint.com/java-string


JavaTpoint JavaTpoint is a Leading Tutorial site that provide Tutorial over many Technologies like Java, String , Hibernate, Cloud Computing,Python, Android etc. Our Tutorial site help Beginners a lot. JavaTpoint is a Tutorial Site that offers Tutorials even on Sub -Topics of any Topic. JavaTpoint also offer Tutorials on Interview Questions.


Java String:Java String is an array of characters.The String class is normally utilized for holding and controlling strings of content in Java programs. Strings in Java are a broadly utilized information sort; they permit us to store everything without exception that need to do with words, sentences, telephone numbers, or even simply standard numbers. This section is about String Class Methods


String Class Methods:1. char charAt() = Returns the character located at specified index. Link :- http://www.javatpoint.com/java-string-charat

2. int length() = Returns number of characters. Link :- http://www.javatpoint.com/java-string-length

3. static String format() = Returns formatted string. Link :- http://www.javatpoint.com/java-string-format

4. boolean contains() = Returns true or false. Link :- http://www.javatpoint.com/java-string-contains

5. static String join() = Return joined string. Link :- http://www.javatpoint.com/java-string-join


String Methods (Cont.):6. boolean equals() = Compare the string. Link :- http://www.javatpoint.com/java-string-equals

7. boolean isEmpty() = whether string is empty or not. Link :- http://www.javatpoint.com/java-string-isempty

8. String concat() = Concatenate strings. Link :- http://www.javatpoint.com/java-string-concat 9. string replace() = Replace occurrence of characters. Link :- http://www.javatpoint.com/java-string-replace

10. String trim() = Returns whitespace omitted copy of string. Link :- http://www.javatpoint.com/java-string-trim


For more Tutorials just visit to our Tutorial Site http://www.javatpoint.com/


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.