import java.util.*;

public class Verifier
{
    public static final String EXAMPLE1_DATA = "example1.txt";
    public static final String EXAMPLE2_DATA = "example2.txt";

    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public boolean verify ()
    {
        Vector<JoltageAdapter> adapters = Util.loadData(EXAMPLE1_DATA, _debug);
        Device device = Util.largest(adapters, _debug);
        Connector con = new Connector(_debug);
        Vector<JoltageAdapter> sorted = con.connect(adapters);

        for (int i = 0; i < sorted.size(); i++)
        {
            System.out.println("Adapter: "+sorted.elementAt(i).outputJoltage());
        }

        return false;
    }

    private boolean _debug;
}
@@ -101,16 +101,179 @@
 1.txt%22;%0A
+    public static final int EXAMPLE1_DIFFERENCE1 = 7;%0A    public static final int EXAMPLE1_DIFFERENCE2 = 0;%0A    public static final int EXAMPLE1_DIFFERENCE3 = 5;%0A%0A
     publ
@@ -327,16 +327,16 @@
 2.txt%22;%0A
-
 %0A    pub
@@ -683,16 +683,58 @@
 ters);%0A%0A
+        sorted.add(device.getAdapter());%0A%0A
         
@@ -864,16 +864,16 @@
 age());%0A
-
         
@@ -871,24 +871,806 @@
 %0A        %7D%0A%0A
+        con.getDifferenceThree().add(device.getAdapter());%0A%0A        if (con.getDifferenceOne().size() == EXAMPLE1_DIFFERENCE1)%0A        %7B%0A            if (con.getDifferenceTwo().size() == EXAMPLE1_DIFFERENCE2)%0A            %7B%0A                if (con.getDifferenceThree().size() == EXAMPLE1_DIFFERENCE3)%0A                %7B%0A                    return true;%0A                %7D%0A                else%0A                    System.out.println(%22Wrong difference 3 for %22+EXAMPLE1_DATA+%22: %22+con.getDifferenceThree().size());%0A            %7D%0A            else%0A                System.out.println(%22Wrong difference 2 for %22+EXAMPLE1_DATA+%22: %22+con.getDifferenceTwo().size());%0A        %7D%0A        else%0A            System.out.println(%22Wrong difference 1 for %22+EXAMPLE1_DATA+%22: %22+con.getDifferenceOne().size());%0A%0A
         retu

Update Verifier.java