Java - How do i run a loop until no more data is entered
<p>What i need to do is take in data from a file and run it through a loop, the amount can vary from 1 to 50. So i won't be able to put in a counter, i figure it maybe a do while loop...just don't know how to set it up.</p>

<pre><code>out.printf("Schedule Report\n--------------\n");
    out.printf("First: %s\n", fname);
    out.printf("Last: %s\n\n", lname);
    out.printf("M  D    Y  Hr Mn Pd  Category   Description\n");
    out.printf("-  -    -  -- -- --  --------   -----------\n");

    do{
    out.printf("%-2d", month);
    out.printf("%-3d", day);
    out.printf("%-6d", year);
    out.printf("%-3d", hour);
    out.printf("%-3d", minute);
    out.printf("%4s", pd);
    out.printf("%-2s", category);
    out.printf("%-10s", description);
    amApp++;
    pmApp++;
    }while()
    out.printf("Summery\n-------\n");
    out.printf("AM appointments: %d", amApp);
    out.printf("PM appointments: %d", pmApp);
</code></pre>