File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes fetch in integer variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "fetch in integer variable" Watch "fetch in integer variable" New topic
Author

fetch in integer variable

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 182

how to fetch following string array into integer array


i am doing like following


but it is giving compile time error.
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 930
try this:
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4240
    
    7

Integer.parseInt takes a String as the argument, but you're passing it a String array.

To convert an array of Strings into an array of ints, you need to create the int array of the right size, then loop round the arrays converting each individual String to an int.
Athira Vineeth
Greenhorn

Joined: Sep 06, 2010
Posts: 16
Hi,

Try this


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fetch in integer variable
 
Similar Threads
how to acess the elements in an array of array objects.
Need suggestion on implementation
Find two repeating elements in an Array
Server certificate is not trusted
query string variable