A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates)
Be in touch with java jazzle or k2java.blogspot.com.
Pages
▼
Wednesday, May 18, 2011
Assigning 1D array to row of 2D array
int myArray[][] = newint [4][4]; myArray[0] = newint[] {1, 9, 4,7,8} ; int[] x = {1, 7, 4,5,6,7,6,90,4,5,6,7,8,9,0,1,3,4,5} ; // declare and init x myArray[1]=x;
No comments:
Post a Comment