We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Java
  3. Data Structures
  4. Java Arraylist
  5. Discussions

Java Arraylist

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • alqys281_fare
    2 months ago+ 0 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!");
                        }
                    }
    
    }
    

    }

    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy