All Subjects
Light
The length() method is a built-in function in Java that returns the number of characters in a string.
congrats on reading the definition of length() method. now let's actually learn it.
substring(int beginIndex, int endIndex): This method extracts a portion of a string based on the specified beginning and ending indexes.
equals(String other): This method compares two strings and returns true if they are equal, and false otherwise.
charAt(int index): This method returns the character at the specified index position in a string.