Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 3 Forum
Date: Sat Sep 29 2001 3:39 pm
Author: Vangaalen, Alexander <av@andrew.cmu.edu>
Subject: Convert Object to Int

How do I convert an object stored in my Vector of line numbers back into an int so I can then compare them and find the correct line number answer. This is what I have been trying:
1. (int) VectorName.elementAt(i);
2. VectorName.elementAt(i).intValue();

Any help is appreciated.
thanks
alex
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
Convert Object to Int      Vangaalen, Alexander      Sat Sep 29 2001 3:39 pm       
Re: Convert Object to Int      Liu, Limin Angela      Sat Sep 29 2001 4:15 pm       
Re: Convert Object to Int      Yuen, John      Sun Sep 30 2001 6:51 pm       

Back to previous screen