Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    4,185

    Re: Where am I going wrong? :)

    technically, yes that would work. However, that's bad programming practice. The reason is any calling method has no way to access that value. Not to say all side effects are bad, in fact it's quite...
  2. Replies
    9
    Views
    4,185

    Re: Where am I going wrong? :)

    change the System.out.println("The tip should be at least " + tip); to return tip;. Then print out the returned value in your main method.
Results 1 to 2 of 2