Let's say I have a public class with static methods, one of them for example:
public static void test(boolean b){
b = !b;
}
Let's say this class name is Test. From another class, where I have a variable boolean a = false, I call
Test.test(a);
How can I make it change a permanently, and not just change it in that static methods scope?