Search:

Type: Posts; User: GregBrannon

Search: Search took 0.08 seconds.

  1. Re: Trying to write a program that reads from StdIn and findes the highest value

    What about that error message don't you understand? I realize they can be a bit cryptic (sometimes), especially if you haven't taken the time to READ them and apply them to your code and the error...
  2. Re: Trying to write a program that reads from StdIn and findes the highest value

    Specifically, is the "return a;" statement in main() required? I suspect not, especially since it's not allowed in a void method which main() must be.

    To print the value returned by your method...
  3. Re: Trying to write a program that reads from StdIn and findes the highest value

    The error message is quite helpful. No 'void' method can have a return statement. Why is the return statement in your void main() method? What are you trying to do?
Results 1 to 3 of 3