Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ternary operator

843807Jan 28 2010 — edited Mar 10 2010
Hi,
Guys, what I'm doing wrong in here? I'm getting an error that this isn't a statement.
i == 0 ? tmp.setSelected(true) : tmp.setSelected(false);
tmp is a JRadioButton;

Thank you for any help.

Comments

jflack
You might want to ask this in the ApEx forum - 3139 This is the ApEx Listener forum.
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 7 2010
Added on Jan 28 2010
70 comments
5,064 views