16 lines
149 B
Java
Executable File
16 lines
149 B
Java
Executable File
class Toggle1
|
|
{
|
|
boolean toggle(boolean b)
|
|
{
|
|
if(b)
|
|
{
|
|
b = false;
|
|
return b;
|
|
}
|
|
else
|
|
{
|
|
b = true;
|
|
return b;
|
|
}
|
|
}
|
|
} |