Can someone please help me with Assignment 2 Question 2?
When reading in the integers from the file,what exactly is the code?
I know that in.readLine() is for String. what about integers?
Can someone please help me with Assignment 2 Question 2?
When reading in the integers from the file,what exactly is the code?
I know that in.readLine() is for String. what about integers?
Thanks for the help but how does one do that? It says in the txtbook that one can convert from int to float to double etc etc. But is it possible to convert from String to Int?
I tried the code of, say for example numstring = in.readLine() and then num = int(numstring) but that doesn't work.
I don't know- maybe I'm jst complicating things. Is there any other way to solve this?