0

Just a question I have been thinking about for a while. Like why use something like this below instead of putting it in an array list?

    int student_id[]=new int[100];
    String stu_fname[]=new String[100];
    String stu_lname[]=new String[100];
    String stu_major[]=new String[100];
    double stu_gpa[]=new double [100];
ggorlen
  • 33,459
  • 6
  • 59
  • 67
  • 1
    These students should be objects of a Student class. I don't quite follow your proposal/tradeoff here. Note that the parallel processing tag doesn't seem to apply to this post. – ggorlen Aug 09 '18 at 19:49
  • 1
    Please also show the alternative code you are thinking of. – Yunnosch Aug 09 '18 at 19:50

0 Answers0