15 lines
134 B
Plaintext
15 lines
134 B
Plaintext
|
class Toggle2
|
||
|
{
|
||
|
boolean toggle(boolean b)
|
||
|
{
|
||
|
if(b)
|
||
|
{
|
||
|
b = false;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
b = true;
|
||
|
}
|
||
|
return b;
|
||
|
}
|
||
|
}
|