Refactored all solutions

This commit is contained in:
rshaghoulian
2017-04-05 18:42:35 -05:00
parent 5f4c2f4a78
commit decc8e791e
135 changed files with 848 additions and 849 deletions
@@ -6,13 +6,13 @@ import java.util.Scanner;
import java.util.PriorityQueue;
import java.util.Comparator;
class Student{
class Student {
private String fname;
private double cgpa;
private int token;
public Student(String fname, double cgpa, int token) {
this.fname = fname;
this.cgpa = cgpa;
this.cgpa = cgpa;
this.token = token;
}
public int getToken() {
@@ -55,7 +55,7 @@ public class Solution {
if (pq.isEmpty()) {
System.out.println("EMPTY");
} else {
while ( ! pq.isEmpty()) {
while (!pq.isEmpty()) {
Student s = pq.remove();
System.out.println(s.getFname());
}