OK I have been wrestling with this for the past couple of hours.
Here is the code I have:
System.out.print("The squeaky wheel gets the grease. Please enter True or False.");
s1 = br.readLine();
if (s1 = 'true')
counter++;
Obviously there is more to it and then all works
I need to be able to take the value that I typed in and convert it to a boolean somehow so I can take it and compare it so I can add one to the counter if its true or don't add if its false. I only started this class 6 weeks ago so don't yell about my java skills 🙂
Please send me a PM for the problem and the complete code
Here is the code I have:
System.out.print("The squeaky wheel gets the grease. Please enter True or False.");
s1 = br.readLine();
if (s1 = 'true')
counter++;
Obviously there is more to it and then all works
I need to be able to take the value that I typed in and convert it to a boolean somehow so I can take it and compare it so I can add one to the counter if its true or don't add if its false. I only started this class 6 weeks ago so don't yell about my java skills 🙂
Please send me a PM for the problem and the complete code