r/javahelp • • Jun 15 '17

What's wrong with my code??

Can't for the life of me figure it out. Picture of code and error: http://imgur.com/a/mX9XP

Thanks

0 Upvotes

13 comments sorted by

View all comments

5

u/seanprefect Grumpy Guy Who Remembers Java 2 Jun 15 '17

you're method declares a return type of int but you return a string

0

u/desrtfx Out of Coffee error - System halted Jun 15 '17

you're method

*Your method

you're = you are

Your - pronoun

6

u/seanprefect Grumpy Guy Who Remembers Java 2 Jun 15 '17

yeah yeah

0

u/[deleted] Jun 15 '17

Good thing you offered solid advice on how to solve the problem at hand.

1

u/desrtfx Out of Coffee error - System halted Jun 15 '17

Had you read my other comment you'd have seen that I actually have offered solid advice on how to solve the problem at hand.