The Keyboard class can be found here.
//***************************************************************
// Loop.java Author: Franck van Breugel
//
// Demonstrates a loop.
//***************************************************************
public class Loop
{
//-----------------------------------------------------------
// Prints a number of *'s.
//-----------------------------------------------------------
public static void main(String[] args)
{
byte b = -1;
while (b != 0)
{
System.out.print("*");
b--;
}
System.out.println();
}
}
terminate? Find out experimentally and try to explain your findings.