JavaCompilerCore/examples/OldExamples/hama/ToggleMain.jav
2013-10-18 13:33:46 +02:00

18 lines
519 B
Java
Executable File

public class ToggleMain
{
public static void main(String[] args)
{
Toggle1 t1 = new Toggle1();
boolean b1 = false;
System.out.println("b1: " + b1);
System.out.println("b1 getoggelt: " + t1.toggle(b1));
Toggle2 t2 = new Toggle2();
boolean b2 = false;
System.out.println("b2: " + b2);
System.out.println("b2 getoggelt: " + t2.toggle(b2));
Toggle3 t3 = new Toggle3();
boolean b3 = false;
System.out.println("b3: " + b3);
System.out.println("b3 getoggelt: " + t3.toggle(b3));
}
}