You are viewing a single comment's thread. Return to all comments →
public static void main(String[] args) { Scanner sc =new Scanner( System.in) ; int lines =sc.nextInt() ; ArrayList array_list = new ArrayList() ; for (int i=0 ;i < lines;i++ ){ int colLineItem = sc.nextInt(); array_list.add(new ArrayList<>()); for(int y =0 ;y
} catch (Exception e) { System.out.println("ERROR!"); } } }
}
Java Arraylist
You are viewing a single comment's thread. Return to all comments →
public static void main(String[] args) { Scanner sc =new Scanner( System.in) ; int lines =sc.nextInt() ; ArrayList array_list = new ArrayList() ; for (int i=0 ;i < lines;i++ ){ int colLineItem = sc.nextInt(); array_list.add(new ArrayList<>()); for(int y =0 ;y
}