import java.lang.reflect.Method;
public class Main {
public static void main(String[] args) {
Class aClass = String.class;
// Get the methods
Method[] methods = aClass.getDeclaredMethods();
// Loop through the methods and print out their names
for (Method method : methods) {
System.out.println(method.getName());
}
}
}
/*
hashCode
compareTo
compareTo
indexOf
indexOf
indexOf
indexOf
indexOf
equals
toString
charAt
checkBounds
codePointAt
codePointBefore
codePointCount
compareToIgnoreCase
concat
contains
contentEquals
contentEquals
copyValueOf
copyValueOf
endsWith
equalsIgnoreCase
format
format
getBytes
getBytes
getBytes
getBytes
getChars
getChars
intern
isEmpty
lastIndexOf
lastIndexOf
lastIndexOf
lastIndexOf
lastIndexOf
length
matches
offsetByCodePoints
regionMatches
regionMatches
replace
replace
replaceAll
replaceFirst
split
split
startsWith
startsWith
subSequence
substring
substring
toCharArray
toLowerCase
toLowerCase
toUpperCase
toUpperCase
trim
valueOf
valueOf
valueOf
valueOf
valueOf
valueOf
valueOf
valueOf
valueOf
*/
|