#How to compile file on bluej, what's wrong with my code?

1 messages ยท Page 1 of 1 (latest)

lilac hornet
#

Next will be my code files

weary elmBOT
#

โŒ› This post has been reserved for your question.

Hey @lilac hornet! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

idle pollen
#

What are we supposed to look at?

muted latch
#

in that code:

  • type for journey1, journey2, journey3 missing
  • get.cardID ???
  • method definitions outside of the class, after the closing }
  • getSmartCardID: return type missing
  • getSmartCardID: dead code after the first return, you cant return multiple things like this
muted latch
muted latch
# lilac hornet

in this one: everything's fine until the last method, where the code in it is considered dead because of the return before it. i assume you wanted to put that code in its own method, but you haven't done that

muted latch
lilac hornet
lilac hornet
weary elmBOT
# lilac hornet Thank you for this

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.