Why does the return statement not print anything to the console?

Posted by dyoverdx on Stack Overflow See other posts from Stack Overflow or by dyoverdx
Published on 2012-11-06T04:57:37Z Indexed on 2012/11/06 4:59 UTC
Read the original article Hit count: 96

Filed under:

I Googled it and I didn't hit anything useful, so I decided to ask on here. I can't use System.out.println for the project that I am working on, so I used the return statement. Everything compiles just fine, but my return statement doesn't print anything to the console, the program just terminates. All I have in the code is just an if-else statement that returns true or false. Why don't I see anything on the console? I am using Eclipse Juno's Console by the way.

© Stack Overflow or respective owner

Related posts about java