/** * Class Demo - this class is used in the BlueJ tutorial for demonstrating * the BlueJ debug functionality. It contains loops and nested method calls * that make interesting examples to set breakpoints. * * @author M. Kolling * @version 13 August 1999 */ public class Demo { private String name; private int answer; /** * Constructor for objects of class Demo */ public Demo() { name = "Marvin"; answer = 42; } /** * Loop for a while and do some meaningless computations. */ public int loop(int count) { int sum = 17; for (int i=0; i