Thread
:
Question mark colon operator question
View Single Post
#
1
(
permalink
)
04-29-2007, 10:45 PM
orchid
Member
Join Date: Apr 2007
Location: Midwest
Posts: 60
Question mark colon operator question
I inherited some code that I simply cannot sort out. Can anyone tell me why this prints off X88. It makes no sense to me.
Thanks
Code:
char x = 'X'; int i = 0; System.out.print(true ? x : 0); System.out.print(false ? i : x);
Sponsored Links
orchid
View Public Profile
Send a private message to orchid
Find all posts by orchid