Answers for "string all methods in java"

3

java string methods

static String valueOf(int i) - returns the string representation of the int 
argument.
Posted by: Guest on October-23-2020
0

java string methods

str.length(); // Gets length of strings
str.substring(start,end); // Substring from start to end
str.equals(string); // Checks if two strings are equal
str.equalsIgnoreCase(string); // equals but without case
str.indexOf(string); // first instance of string in str, if non existant it returns -1
str.lastIndexOf(string); // last instance of string
Posted by: Guest on October-29-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language