Search:

Type: Posts; User: bgroenks96

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    1,636

    [SOLVED] Re: What's wrong with this boolean?

    Whoops... that's a major noob error. Fixed it and it works!

    Just to wrap up though, I use the comparison operator when stating boolean loop, and then the assignment operator when I want it...
  2. Replies
    8
    Views
    1,636

    [SOLVED] Re: What's wrong with this boolean?

    I tried making the suggested changes:


    public class LoopTest {
    public static void main(String[] args) {
    boolean isRunning = true;
    while(isRunning == true) {
    ...
  3. Replies
    8
    Views
    1,636

    [SOLVED] Re: What's wrong with this boolean?

    I thought == didn't work for boolean
  4. Replies
    8
    Views
    1,636

    [SOLVED] What's wrong with this boolean?

    I thought I understood how the boolean logic worked in Java perfectly fine.... but recently when I was writing some code I noticed something wasn't working well with my boolean variable. So, wrote a...
Results 1 to 4 of 4