Hi everyone, I am new here. I have a question becuase this program has been bugging me really bad. We are supposed to have this program build arrays according to the chicago blackhawks team and print out there goals, shots, assists, etc. and sort them also alphabetically. This is what I came up with but for some reason, when I try to print it out it takes a name out and duplicates one. Also when I try to organize the goals and other stats with the player my program crashes.
What exactly are you asking for help with here? I understand you said what the program should do and what is going wrong, but at what point is that happening? I'd rather not look through the entire code as I am lazy, but I'm happy to help if you can provide a specific place or some output would be helpful as well :)
Oh my bad forgot to add that part. Well I believe its with the sortArrays function. Everything else seems to run fine. I had all the players added and all the stats with that player. Until I started to write the sortArrays function since I was writing that I got it like almost all the way sorted. I think theres something wrong in the second for loop, but i just cant figure it out.