I found this code in a book and I executed it in Netbeans:
boolean b = false; if(b = true) { System.out.println(\"true\"); } else { System.out.printl
Think of int x having 2 possible values, either 1 or 0. If x = 1, then do this. Else, (x = 0) then do something else. Boolean is just saying it is either one condition, or not that condition.