This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
well i have a file say list.ini and following are the contents (contents might grow also..) 10002 10009 30000 40000 500000 600000 so my problem i need to read these values from this file and store it in a vector!!!pls give me an idea on how to do it?
SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Since a vector is declared to hold objects, you have to convert each of them to an object first. If your numbers are ints, convert them to an Integer, if they are longs converts them to Long. You can just wrap them like this... Long aLong = new Long(yourNumber)
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley