0

What are the methods to call on a string and what kind of class it is object of?

7th Feb 2017, 7:26 AM
Ashish Wayne
Ashish Wayne - avatar
2 ответов
+ 2
I am not pretty sure what you want to ask. The String is Java build in class. When you type String s = new String(); you are instantiating a new object of class String. String as a built-in class has many built-in methods you can use. The best way to check what you can use and how is to check Java documentation: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html
7th Feb 2017, 7:59 AM
Ladislav Milunović
Ladislav Milunović - avatar
+ 2
im not sure if i understand your question right, but here is a list of nearliy all string methods https://docs.oracle.com/javase/7/docs/api/java/lang/String.html
7th Feb 2017, 8:01 AM
R4xx4r
R4xx4r - avatar