Results 1 to 8 of 8
Thread: Get int from Array
- 10-21-2009, 03:52 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 6
- Rep Power
- 0
Get int from Array
Hey guys,
Have a small problem in extracting an int value from an array. Im modifying code for a class exercise so im not 100% sure of all the code. Anyway, here is what I have extracted as the code relating to the array.
Java Code:private static final int BallArraySize = 10; private Ball [] ballArray = new Ball [BallArraySize];
Java Code:int current = Array.getInt(ballArray,i);
Any ideas?
Thanks
- 10-21-2009, 04:04 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 14
Java Code:int current = ballArray[i];
- 10-21-2009, 04:05 PM #3Java Code:
int current = ballArray[i];
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 10-21-2009, 04:10 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 14
- 10-21-2009, 04:22 PM #5
Who knows? :shrug:
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 10-21-2009, 05:41 PM #6
Member
- Join Date
- Oct 2009
- Posts
- 6
- Rep Power
- 0
Sorry if I wasnt clear at the start. Managed to get what I wanted by just adding into a for loop I have.
- 10-21-2009, 05:45 PM #7
You're still not making much sense, but that might be just me.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 10-21-2009, 10:41 PM #8
Senior Member
- Join Date
- Oct 2009
- Location
- California,US
- Posts
- 201
- Rep Power
- 12
Similar Threads
-
Convert Char Array to String Array
By Mayur in forum New To JavaReplies: 8Last Post: 10-12-2009, 12:41 PM -
Array length and printing out uninitialized array.
By nicolek808 in forum New To JavaReplies: 4Last Post: 09-10-2009, 10:12 AM -
How to transfer 1D array in JAVA to 3D array in C
By fishwater00 in forum New To JavaReplies: 0Last Post: 07-31-2009, 07:24 PM -
How to add an integer to a array element and the store that backinto an array.
By Hannguoi in forum New To JavaReplies: 1Last Post: 03-31-2009, 07:40 AM -
String array to byte array?!
By Joe2003 in forum Advanced JavaReplies: 5Last Post: 02-28-2009, 07:09 AM
Bookmarks