public class Verifier
{
    public static final String EXAMPLE1_DATA = "example1.txt";
    public static final int EARLIEST_DEPARTURE = 944;
    public static final int RESULT = 295;

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

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

        if (bs != null)
        {
            if (bs.nextDeparture() == EARLIEST_DEPARTURE)
            {
                int diff = bs.nextDeparture() - tt.earliestDeparture();

                if (diff * bs.getID() == RESULT)
                    return true;
                else
                    System.out.println("Wrong difference "+diff+" or bus "+bs);
            }
            else
                System.out.println("Incorrect departure time: "+bs.nextDeparture());
        }
        else
            System.out.println("No bus found!");

        return false;
    }

    private boolean _debug;
}
@@ -350,519 +350,39 @@
 g);%0A
-        Bus bs = tt.busToCatch();%0A%0A        if (bs != null)%0A        %7B%0A            if (bs.nextDeparture() == EARLIEST_DEPARTURE)%0A            %7B%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                System.out.println(%22Incorrect departure time: %22+bs.nextDeparture
+%0A        tt.earliestTimestamp
 ()
-)
 ;%0A  
@@ -390,73 +390,9 @@
     
- 
-%7D%0A        else%0A            System.out.println(%22No bus found!%22);%0A
+ 
 %0A   

Update Verifier.java