A Val Val1 Val3 Val2 Val Val1 Val Val2 Val Val2 Val Val Val3 Val Val Val Val Val1 Val Val Val Val Val Val
This Java code demonstrates various string methods in Java including ==, equals(), length(), charAt(), toLowerCase(), concat(), replace(), substring(), indexOf(), and lastIndexOf(). It creates String variables, compares them, extracts characters, converts case, concatenates, and searches for indexes. The output verifies the results of applying each method to the sample strings.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
40 views1 page
A Val Val1 Val3 Val2 Val Val1 Val Val2 Val Val2 Val Val Val3 Val Val Val Val Val1 Val Val Val Val Val Val
This Java code demonstrates various string methods in Java including ==, equals(), length(), charAt(), toLowerCase(), concat(), replace(), substring(), indexOf(), and lastIndexOf(). It creates String variables, compares them, extracts characters, converts case, concatenates, and searches for indexes. The output verifies the results of applying each method to the sample strings.
== method new and string literal:false equals method:true length is16 equals Ignore case:true Character at:j LowerCase function:java programming Uppercase function:JAVA PROGRAMMING concatenation:java programmingjava programming replacevava programming java programming substring(one par)va programming index of1 last index of10 last index of(two param)5