Answers for "initializing a string java"

0

how to initialize a string in java

Scanner sc = new Scanner(System.in);
String str = sc.next();
Posted by: Guest on May-22-2021
0

how to initialize any string in java

String str = new String("very");
str = "good";
Posted by: Guest on September-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language