public class Verifier
{
    public static final String EXAMPLE_DATA = "example.txt";
    public static final int EARLIEST_DEPARTURE = 944;
    public static final int RESULT = 255;

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

    public boolean verify ()
    {
        Timetable tt = new Timetable(EXAMPLE_DATA, _debug);
        Bus bs = tt.busToCatch();

        if (bs != null)
        {
            if (bs.nextDeparture() == EARLIEST_DEPARTURE)
            {
                return true;
            }

            System.out.println("Incorrect departure time: "+tt.earliestDeparture());
        }
        else
            System.out.println("No bus found!");

        return false;
    }

    private boolean _debug;
}
@@ -170,17 +170,17 @@
 SULT = 2
-5
+9
 5;%0A%0A    
@@ -504,36 +504,283 @@
     
-return true;%0A            %7D%0A%0A
+int diff = bs.nextDeparture() - tt.earliestDeparture();%0A%0A                if (diff * bs.getID() == RESULT)%0A                    return true;%0A                else%0A                    System.out.println(%22Wrong difference %22+diff+%22 or bus %22+bs);%0A            %7D%0A            else%0A    
     
@@ -835,26 +835,22 @@
 time: %22+
-tt.earlies
+bs.nex
 tDepartu

Update Verifier.java