Timeline for answer to Calling Methods by Reimeus
Current License: CC BY-SA 3.0
Post Revisions
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 15, 2014 at 23:56 | history | edited | Eran | CC BY-SA 3.0 |
added 2 characters in body
|
| Nov 7, 2013 at 20:29 | comment | added | user2932587 | @Reimeus not intentionally, but I may be. | |
| Nov 7, 2013 at 20:27 | comment | added | Reimeus |
There's something funny going on there - you're not calling getInput twice by any chance?
|
|
| Nov 7, 2013 at 20:20 | vote | accept | Community Bot | ||
| Nov 7, 2013 at 20:17 | comment | added | user2932587 | This solved the problem I was having, but now instead of using the value stored in number for the isOdd method, it asks for another integer before printing true or false. How can I make sure it just used the value I entered when prompted the first time rather than being prompted again? | |
| Nov 7, 2013 at 20:09 | comment | added | Silviu Burcea |
You should also accept his answer. Another alternative is isOdd(getInput()).
|
|
| Nov 7, 2013 at 20:07 | comment | added | user2932587 | Well I feel dumb, that's easy enough. Thanks! | |
| Nov 7, 2013 at 20:05 | history | answered | Reimeus | CC BY-SA 3.0 |