• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how do i hold 2 seperate numbers in 1 array

in vb you can store like this>>>>hrack(x).Tag = CStr(dom(pipVal(Y), 0)) & CStr(dom(pipVal(Y), 1)) & CStr(dom(pipVal(Y), 2))

i know thats not an array.
but is there a way in java to do this?
many thanks
 
this line want work no matter what i do >>>tiles.add(new String[]{gi,gj});
im trying to print out gi and gj ,not sure how to fix it.
 
Or to do it the way you were trying, it would look like this:

[high]
for(int i=0; i < gi.length; ++i) {
tiles.add(new String[] {gi, gj}) ;
}
[/high]
 
ok if i do it like this >>>
System.
out.print("("+ gi + ", " + gj + ") ");

i get the answer i was looking for.
then i can store them in tiles?
 
Back
Top Bottom