public class Verifier
{
    public static final String EXAMPLE_DATA = "example.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(EXAMPLE_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;
}
@@ -51,24 +51,25 @@
 ring EXAMPLE
+1
 _DATA = %22exa
@@ -72,16 +72,17 @@
 %22example
+1
 .txt%22;%0A 
@@ -329,16 +329,17 @@
 (EXAMPLE
+1
 _DATA, _

Update Verifier.java