View Single Post
  #1 (permalink)  
Old 12-13-2007, 10:56 AM
ravian ravian is offline
Senior Member
 
Join Date: Nov 2007
Posts: 115
ravian is on a distinguished road
boolean variables
I am confused about boolean variables. What is the use of boolean variables? We can use short variable (as a flag) for the required purpose then what edge does boolean variables gives us?

Code:
if(var == 1) System.out.println("true"); else System.out.println("false");
Reply With Quote
Sponsored Links