View Single Post
  #1 (permalink)  
Old 04-29-2007, 10:45 PM
orchid's Avatar
orchid orchid is offline
Member
 
Join Date: Apr 2007
Location: Midwest
Posts: 60
orchid is on a distinguished road
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);
Reply With Quote
Sponsored Links