Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Sorting Java

josh2013
josh2013 


Sorting Java Attachments Tags
Clarifications

Answers

Java - Student Sorting List

dickersonka
dickersonka 



Attached is the updated source which uses a list instead of array for the students. Attachments
CH11PR112App.java (3 K) Download Preview
while (aScanner.hasNext()) { String studentLastName = aScanner.next(); String studentFirstName = aScanner.next(); double score = aScanner.nextDouble(); System.out.println(studentFirstName + " " + studentLastName + " " + score); //create new student Student student = new Student(); //set properties student.setLastName(studentLastName); student.setFirstName(studentFirstName); student.setScore(score);

Screenshots
Purchase Answer