Answers for "java how to create string array"

13

java new string array

String[] myStringArray = new String[3];
String[] myStringArray = {"a", "b", "c"};
String[] myStringArray = new String[]{"a", "b", "c"};
Posted by: Guest on February-15-2020
1

array of string java

//store input string in an array with an length unknown
		Scanner scanner = new Scanner(System.in);
        String[] string = scanner.nextLine().split(" ");
Posted by: Guest on October-30-2021

Code answers related to "java how to create string array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language