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

16 lines
149 B
Java
Executable File

class Toggle1
{
boolean toggle(boolean b)
{
if(b)
{
b = false;
return b;
}
else
{
b = true;
return b;
}
}
}