Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

input arraylist in java

ArrayList<Integer> LIST = new ArrayList<Integer>();
while (sc.hasNextInt()) 
{
    int i = sc.nextInt();
    LIST.add(i);
}
 
PREVIOUS NEXT
Tagged: #input #arraylist #java
ADD COMMENT
Topic
Name
6+8 =