i have a student class that reads and writes info about students, when printing a table, the array list of "coursecodes" comes out sorted when i didnt sort it. what could be the issue? full code down below.
input:
student ID: s134256
student name: Mohammed Ali
Semester ID: Fall2023
Course ID: course name: number of credit hours: letter grade
Comp2021: Python: 4: A-
Hist1001: History: 2: B
Arab1002: Arabic: 3: C+
Lanc1011: English: 3: B+
output:
Student ID: s134256
Student name: Mohammed Ali
Semster id: Fall2023
Course code course name number of credited hours letter grade points gained points
Arab1002 Python 4 A- 3.7 14.8
Comp2021 History 2 B 3.0 6.0
Hist1001 Arabic 3 C+ 2.3 6.8999999999999995
Lanc1011 English 3 B+ 3.3 9.899999999999999
total hours: 12 student average: 3.25 total gained points: 39.0 student status: ok