| Author |
fetch in integer variable
|
Megha Singhal
Ranch Hand
Joined: Feb 28, 2012
Posts: 133
|
|
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: 908
|
|
try this:
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3859
|
|
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
|
 |
 |
|
|
subject: fetch in integer variable
|
|
|