• + 0 comments

    This is my solution:

    List elements = new ArrayList<>(); Scanner scan = new Scanner(System.in);

    int size = scan.nextInt();

    for(int i=0;i