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

25 lines
250 B
Java
Executable File

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