Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.48 seconds.

  1. Re: else if - else if - else if... Goes Straight To Final else

    Well, here's a couple hints: class names start with capital letters, variables and methods start with lower-case letters. Always use curly braces {} after if statements and for loops. These might...
  2. Re: else if - else if - else if... Goes Straight To Final else

    It's not a flat-out rule per se, it's more just common courtesy- give a man a fish vs teach a man to fish. We're here to help. Doing somebody's work for them doesn't help them, and providing code...
  3. Re: else if - else if - else if... Goes Straight To Final else

    Shia, please do not spoonfeed. It's not helpful, and your code leaves quite a bit to be desired. It's only going to cause a novice programmer to get into some pretty obvious bad habits. If you want...
  4. Re: else if - else if - else if... Goes Straight To Final else

    If I understand what you mean, then yeah, Objects are a little different from primitives. Things like ints and doubles are primitives (that's why they don't have methods), and Strings are Objects.
  5. Re: else if - else if - else if... Goes Straight To Final else

    Don't use == with String. Instead, use the .equals() method.

    == compares references. In other words, it checks to see whether two Objects are the same instance.

    The .equals() method compares...
Results 1 to 5 of 5