View Single Post
  #1 (permalink)  
Old 05-30-2007, 04:01 PM
Marty Marty is offline
Member
 
Join Date: May 2007
Posts: 38
Marty is on a distinguished road
MSG ERROR: : expected
Code:
/** * Write a description of class EvenOdd here. * @author (your name) * @version (a version number or a date) */ public class EvenOdd { public static void main(){ for (int i=0; i < 40; i++){ i % 2 == 0 ? System.out.println(i + "is an even number"); : System.out.println(i + "is an odd number"); } } }
it returns me this error: MSG ERROR: : expected
Reply With Quote
Sponsored Links