Can the same boolean statement work in multiple classes? Do you have to set it to 'private static boolean'?


1 2 3 4 5 6 7 8 9 10 | public class example { private boolean exampleVariable; public boolean getExampleVariable() { return exampleVariable; } public void setExampleVariable( boolean exampleVariable) { this .exampleVariable = exampleVariable; } } |