Could anyone tell me how to take in an integer from a user and parse that string integer into an integer?
Does this example http://rosettacode.org/wiki/User_input/Text#Fantom help?
Env.cur.in.readLine.toInt reads a line of input from the user and tries to convert it to an integer.
Env.cur.in.readLine.toInt
Thanks much
Login or Signup to reply.
audie Sat 30 Apr 2011
Could anyone tell me how to take in an integer from a user and parse that string integer into an integer?
peter Sat 30 Apr 2011
Does this example http://rosettacode.org/wiki/User_input/Text#Fantom help?
Env.cur.in.readLine.toInt
reads a line of input from the user and tries to convert it to an integer.audie Sat 30 Apr 2011
Thanks much