Re: [X10-users] compilation error

2009-12-02 Thread Igor Peshansky
Hi, Andrei, As I suspected, readLine() retains the newline character, and parseInt() doesn't like it. You need to strip that newline away. Igor Andrei Blackness wrote on 12/02/2009 11:17:30 AM: > Thank you for your response Igor. I didnt realize it trunked my > message. I will repost

[X10-users] compilation error

2009-12-02 Thread Andrei Blackness
Thank you for your response Igor. I didnt realize it trunked my message. I will repost the code. I added it the x10 file as an attachment too. public class Hello { public static def main(args:Rail[String]!){ if(args.length>0){ Console.OUT.println("The first arg is: "+args

Re: [X10-users] compilation error

2009-12-01 Thread Igor Peshansky
Hi, Andrei, Unfortunately, your code came through quite garbled -- probably some weird interaction between your mailer and the mailing list software. Could you please re-send your message as plain text? You also didn't mention what version of X10 you were using, though from the "!" in the signatu

[X10-users] compilation error

2009-12-01 Thread Andrei Blackness
Can someone please tell me what is wrong with this code? public Console.OUT.println( } Console.OUT.println(classHello {publicstaticdefmain(args:Rail[String]!){if(args.length>0){"The first arg is: "+args(0));"Enter a number: ");valh = newHello(); // final variable h.myMethod(); } Console.OUT.p