Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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(" ");
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #array #string #java
ADD COMMENT
Topic
Name
3+3 =