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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

Processing
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
4,841 views