Marlene, et.al., It's the focus police again Just for the sake of the new cowpokes here at JavaRanch, the Comparable interface is NOT on the SCJP exam. Proceed with your wonderful exercise in confusion...
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
hi Marlene oo... I without using the compiler help me at this time It is a good practice /exercise Let me try...... boolean b1 = "astring".equals(o); b1=true boolean b2 = o.equals("astring"); b2=true boolean b3 = "astring".equals(c); b3=true boolean b4 = c.equals("astring"); b4=true boolean b5 = o.equals(c); b5=true boolean b6 = c.equals(o); b6=true boolean b7 = "astring".equals(s); b7=false boolean b8 = s.equals("astring"); b8=false Because I seldom use Comparable thanks for checking my answer