I have never used Boolean in java before, I?m finding it very frustrating, please help!.
Okay this is the problem. This program is meant to prompt the user to enter either, i, r or e. each letter is support to prompt the user to do something else, by printing on to the screen.
this is the code.
public { public static boolean Main (String [ ] args)
boolean i,r,e; int prompt, promtpt1, prompt2
System.out.println ("enter i,r and or e");
if (i) System.out.println ("next step") Keyboard.readint;
if (r) System.out.println ("next step") Keyboard.readint;
if (e) System.out.println ("exit, bye") Keyboard.readint;
else System.out.println ("only i,r or e can be used, bye") Keyboard.readint;
Or a better option would be to not using Boolean and just to use "char" type. Store the input into the char variable and then use "case" statement to do your conditional work?