hmmm
Printable View
hmmm
How do you want the ints to go into an array?
Can you explain how you want those 3 (or all 9) variables put into an array?
Have you read the tutorial on arrays:
Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
You need to know what goes into the array before you can write the code to assign the values to the array.
Please explain what you want in an array and where in the array you want it to go.
Post the code you have questions about here on the forum.
question solved
You still have not answered my questions!!! See post#2 & #4
I have no idea what you want to do. You need to say which int values (there are 9) are to go where in what array.
What does the program print out now?
....
Please post what the program prints out now.
And add comments to show what you want the output to look like.
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.
Why don't you just create an array of ints and insert your three variables into it and print them out using a for lop much like you are doing now with your String array. Alternatively increase the size of the String array and convert those three ints to Strings and insert them into your String array
....
You should research this yourself. Have a look for Integer class API.
http://docs.oracle.com/javase/tutori...ts/arrays.html
You should have thought of that before. I doubt the moderators will delete a thread that doesn't violate the forum guidelines/rules, just because you got cold feet.