Welcome! Log In Create A New Profile

Advanced

Assignment 2 Question 2

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
Assignment 2 Question 2
April 07, 2009 08:54PM
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?
Anonymous User
Assignment 2 Question 2
April 08, 2009 06:50AM
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?
avatar Re: Assignment 2 Question 2
April 08, 2009 01:31PM
You could try reading the string and converting it to an integer...
Anonymous User
Re: Assignment 2 Question 2
April 08, 2009 03:37PM
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?
avatar Re: Assignment 2 Question 2
April 08, 2009 05:01PM
Anonymous User
Re: Assignment 2 Question 2
April 09, 2009 08:41PM
Thank u so much 4 your help. I managed2correct my code.
Really appreciate it.
Re: Assignment 2 Question 2
April 09, 2009 08:53PM
Awesome! Glad I could help smiling smiley
Sorry, only registered users may post in this forum.

Click here to login