bossakungen Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy. Thanks again and we hope to see you around the ranch!!
Can I convert a string or Vector element which contains some numbers into and Int ?
A Vector can't contain primitives so your numbers inside it has to be stored as a String or an Integer. Cast it back after retrieval. If it's a String parse it back as above (or it will throw a NumberFormatException in case of failure). If it's an Integer use intValue() to get your int. -anthony [ March 29, 2002: Message edited by: Anthony Villanueva ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Converting String or Vector elements to Int..