Answers for "create an array of strings in java"

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 "create an array of strings in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language