all i want to do is change the value of 'result' in a method call........ i'm getting 'result already defined' when compiling this code..
thanks!
class Bool { public static void main (String[] args) { boolean result = false; System.out.println("The boolean is before call " + result); ChangeBool(result); System.out.println("The boolean returned after call to method " + result); } public static boolean ChangeBool(boolean result) { boolean result = true; System.out.println("Change boolean value, result is " + result + " in method"); return result; } }