String Methods
The Java `String` class provides a lot of useful methods for performing operations on strings and data manipulation.
StartKey Concepts
Review core concepts you need to learn to master this subject
length() String Method in Java
concat() String Method in Java
String Method equals() in Java
indexOf() String Method in Java
charAt() String Method in Java
toUpperCase() and toLowerCase() String Methods
length() String Method in Java
length() String Method in Java
String str = "Codecademy";
System.out.println(str.length());
// prints 10
In Java, the length()
string method returns the total number of characters – the length – of a String
.
String Methods
Lesson 1 of 1
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory