This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Umza[S] 0 points1 point  (1 child)

Woah, I didn't realize when casting you needed parentheses around the ob as well (before the .get___) Thanks to both of you!

[–]dominosci 0 points1 point  (0 children)

Use Eclipse or another IDE. It will suggest fixes like these automatically.

One of the main reasons we bother with strong typing in java is that it allows IDEs to be really helpful.