Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to take space separated input in java

String s[]= scanner.nextLine().split(" ");for(int i =0 ;i < s.length;i++){    a[i]= Integer.parseInt(s[i]);}
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #space #separated #input #java
ADD COMMENT
Topic
Name
7+6 =