Answers for "methods for strings in java"

0

string method example in java

public int length()
-----------------------
String x = "01234567";
System.out.println( x.length() ); // returns "8"
Posted by: Guest on January-25-2020
0

java String method

String txt = "Hello World";
System.out.println(txt.toUpperCase());   // Outputs "HELLO WORLD"
System.out.println(txt.toLowerCase());   // Outputs "hello world"
Posted by: Guest on July-17-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language