We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7005f5 commit 96df065Copy full SHA for 96df065
java_basics/java_string/src/Strings.java
@@ -18,7 +18,7 @@ public static void main(String[] args) {
18
19
System.out.println("IndexOF method = " + s.indexOf('l'));
20
21
- System.out.println("LastINs=dexOf MEthod" + s.lastIndexOf('e'));
+ System.out.println("LastIndexOf Method" + s.lastIndexOf('e'));
22
23
System.out.println("Compareto method = " + s.compareTo("Computer"));
24
@@ -33,6 +33,8 @@ public static void main(String[] args) {
33
System.out.println("End With =" + s.endsWith("ve"));
34
35
System.out.println("Trim Method = " + s.trim());
36
+
37
+ System.out.println("Contains Method = " + s.contains("ty"));
38
39
}
40
0 commit comments