dimensional 1 « Array Dimension « Java Collection Q&A

Home
Java Collection Q&A
1.algorithm
2.array
3.Array Byte
4.Array Char
5.Array Convert
6.Array Dimension
7.Array Integer
8.Array Object
9.Array String
10.ArrayList
11.collection
12.comparator
13.Development
14.Garbage Collection
15.Generic
16.hash
17.HashMap
18.HashTable
19.iterator
20.LinkedList
21.List
22.Map
23.queue
24.Set
25.Sort
26.tree
Java Collection Q&A » Array Dimension » dimensional 1 

1. Reflection and multi dimensional arrays    stackoverflow.com

I have code that uses reflection on an input object and does some processing on the data stored in the object. The input object can be anything like String or int ...

2. Why is this java array considered two dimensional?    stackoverflow.com

Consider this code:

class arraytest {

public static void main(String args[]){

    int[] a = null , b[] =null;

    b = a;
    System.out.println( b );

}

}
the ...

3. Java Arrays.equals() returns false for two dimensional arrays    stackoverflow.com

I was just curious to know - why does Arrays.equals(double[][], double[][]) return false? when in fact the arrays have the same number of elements and each element is the same? For example ...

4. Solve Eight Queens puzzle using Single Dimensional Array in Java    stackoverflow.com

The Eight Queens puzzle is to place eight queens on a chessboard so that no two queens can attack each other(i.e. no two queen are on the same row, same column ...

5. Java array to multi dimensional    stackoverflow.com

Is it possible to take an array of say 100 chars and turn it into a 2d array of 10*10?

6. Help With Java Sudoku Permuter Program using Two Dimensional Array?    stackoverflow.com

I have to create a program that displays the 9 rows of a sudoku as 9 9-digit numbers and then prompt the user to do one of 6 operations on the ...

7. Hard coding a two dimensional array error?    stackoverflow.com

import java.util.Scanner;
public class SudokuPermuter {
  public static void main(String[] args) {
      Scanner input = new Scanner(System.in);
      System.out.println("Welcome to Sudoku Permuter.\n");

 ...

8. Sudoku Permuter Program Help!! Two Dimensional Arrays (Java?!)    stackoverflow.com

I have to create a program that displays the 9 rows of a sudoku as 9 9-digit numbers and then prompt the user to do one of 6 operations on the ...

9. Writing two dimensional array in java    stackoverflow.com

I have the following two dimensional array in my java program.

Integer[][] arrayOfSets = {
        {1,2,5,6,9,10},
        ...

10. Getting the class of an n dimensional array of an runtime supplied class name    stackoverflow.com

Given a fully qualified class name, and a number of dimensions, i would like to get the Class name for this class. I believe i can do this like such

public Class<?> ...

11. how to compare similarity between two Multi Dimensional Arrays in Java    stackoverflow.com

I have made a program which builds 3 graphs(arc and node). The graphs were built based on 2D arrays of 1 and 0. The first graph is the Ideal Graph which the ...

12. how to delete an element in a two dimensional array in java?    stackoverflow.com

let the array be

5  1  6  8
2  4  9  3
1  9  3  2
5  3  8  9
in the above shown ...

13. identifying .length in two dimensional array    stackoverflow.com

What is the use of .length here? What could be substituted with .length in the code below? I just wanted to understand the code better, Exams tomorrow! W00t!

public class twoDimension{
  ...

14. Two Dimensional Array Constraints: Sudoku    stackoverflow.com

I am attempting to solve Sudoku as a constraint satisfaction problem for a homework assignment. I have already constructed constraints for all the elements in a particular row being distinct, ...

15. 2-dimensional arrays and the x-y plane    coderanch.com

Your idea for x & y sounds fine. Your example is 3x3 which I find a bit confusing. I might expect points along a line to look like: array = { {0,0}, {1,1}, {2,2}, {3,3} ) where each pair is {x,y}. Then again, in some problems I might define a game board as {row,column} or {rank,file} which are really {y,x}. It ...

16. Two dimensional Array (Strange thing)    coderanch.com

17. multi dimensional arrays    coderanch.com

It's been quite a while since I've done anything with Java and I can't remember if Java has multi dimensional arrays or not? I'm used to using vb, but now that I'm trying to get back into Java, I have a problem to tackle where a two dimensional array would come in handy. If Java does support them, how do I ...

18. Three Dimensional Array    coderanch.com

19. Two Dimensional Arrays    coderanch.com

This is for school: so just point me in the right direction. I have a filter the flips an image horizontaly public void filter(PixelImage pi) { Pixel[][] data = pi.getData(); //for each row, swap its contents from left to right for (int row = 0; row < pi.getHeight(); row++) { for (int col = 0; col < pi.getWidth() / 2; col++) ...

20. How do u get the length of 2 dimensional array?    coderanch.com

Hi Ravi, Try running this and you should fully understand how it works: public class MultiTest { public static void main(String[] args) { int[][] multi = { { 1, 2, 3, 4, 5}, { 6, 7, 8, 9, 10, 11}, {13, 14, 15, 16, 17, 18, 19} }; int[] sing = multi[0]; System.out.println("sing : " + sing.length); for (int i = ...

21. Displaying a 2dimensional array    coderanch.com

22. Multi Dimensional Arrays and nextBoolean    coderanch.com

Hi, I'm trying to solve a problem and have come to the stage of tearing my hair out! Basically I want to create a java program that produces a console display like so. x0xx0 0x00x 0xxx0 xxx00 0000x The rows and columns must be randomly filled. I believe that one needs to use a two dimensional array to achieve this problem ...

23. Multi Dimensional Arrays - Hints to the following prob    coderanch.com

Consider a two dimensional array with M rows and N columns. This represents the world in which some organisms live. Each of the M by N cells in this array is either occupied (if an organism lives there) or is vacant. No more than one organism can live in any one cell at any time. Each cell, except those on the ...

24. 2 dimensional array    coderanch.com

okey.... My problem goes like this 1. i have method A which gives the size of a 2 dimensional array 2.With the use of the array i need to add elememts resulting from the method B i declare the array in this way String arr[][] =new String [foundnum][3]; 3. within method B i have a an iteration(for loop) { if statement ...

25. 2 Dimensional Arrays / Loop problem....    coderanch.com

hi im trying to make a simple calender, i'm having a little difficulty: public class YearCalendar extends OtherClass{// OtherClasscontains the method that returns me the correct number of days in a given month. String weekDays[] = {"Mon.", "Tue.", "Wed.", "Thu.", "Fri.", "Sat.", "Sun."}; int calender[][] = new int[7][5]; String[] monthGroup = {"Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sept.","Oct.","Nov.","Dec."}; public void newCalender(int month, int days){ System.out.println("these are ur ...

26. 2 dimensional array problem    coderanch.com

hi... i have 2 different array declared like this 1. int [][] arr1= new int kk[8][3] 2. int [][] arr2 = new int kk[10][2] i need to compare.... if (arr[k][2]==arr2[k][0]) { System.out.println(arr2[k][1]); } how do i manage the iterations for k? the array sizes are different..... please help.... [ June 15, 2006: Message edited by: catherine matthews ]

27. Output of this 2Dimensional array ?    coderanch.com

hi i have the following code class f { public static void main(String k[]) { System.out.println("Welcome to 2Dimensional array"); int num[][]=new int[4][5]; int i,j,l=0; for( i=0;i<4;i++) for( j=0;j<5;j++) { num[i][j]=l; l++; } for( i=0;i<4;i++){ for( j=0;j<5;j++) System.out.println(num[i][j]+" ") ; System.out.println(); } } } i am getting output like this 0 1 2 3 4 . upto 19 But i am excepting ...

28. Unable to initialize two dimensional array in for loop    coderanch.com

Can you write a for loop to iterate through an ordinary array with the .length field? Write down an ordinary array on paper, maybe int[] array = new int[]{1, 2, 3, 4}. Now write down a 2-subscript array on paper, maybe int[][] numbers = new int[][]{{1, 2, 3}, {4, 5}, {}, {6, 7, 8, 9, 10}, {11}}. That is an array ...

29. Two Dimensional array declaration in Java    coderanch.com

import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; class multidimensionalarray { int arr[][]; void inarr(int b) { try{ for(int i=0;i<4;i++) { for(int j=0;j<4;j++) arr[i][j] =b; } } catch(Exception e) { e.printStackTrace(); } } // end of inarr() public static void main(String args[]) throws IOException { multidimensionalarray mdar = new multidimensionalarray(); BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in)); String br2=br1.readLine(); int br=Integer.parseInt(br2); mdar.inarr(br); //System.out.println(arr[i][j]); } ...

30. Two Dimensional Arrays    coderanch.com

Aruna Balasuriya wrote: According to declaration x[0] may contain only 5 values but I fill 7 values but it wont generate array out of bound exception.why? Keep in mind that Java doesn't really support multidimensional arrays. It supports arrays of arrays. When you instantiated the two dimensional array, the new operator instantiates an array of size three, and then ...

31. two dimensional array into vector    coderanch.com

Moving to Java in General. A multidimensional Vector is nothing more than a Vector of Vectors (of Vectors etc): Vector>. Unlike with multidimensional arrays* you will need to initialize the inner Vectors manually. * There actually is no such things. A multidimensional array is also nothing more than an array of arrays (of arrays etc). The only difference with a multidimensional ...

32. Two Dimensional Array    coderanch.com

public class Main { public Main() { } public static void main(String[] args) { [b]float twoD[][] = { {9*3.2 , 5.2-2 , 7*5},{9*6 , 6-2 , 8*5},{32*6 , 0-2 , 8*5}};[/b] for(int i=0 ; i<3 ; i++ ){ for(int j=0 ; j<3 ; j++ ){ System.out.print(twoD[i][j]+ " "); } System.out.println(); } } } This program generates the following errors.. found : ...

33. Java code for 3Dimensional Array    coderanch.com

Hey, Your code was nearly right, but you weren't finding the lengths correctly, wouldn't something like: String info[][][] = new String[3][4][5]; for (int i=0; i < info.length; i++) { for (int j=0 ; j < info[i].length; j++) { for(int k=0; k< info[i][j].length; k++) { info[i][j][k] = "String[" + i + "," + j + "," + k + "]"; System.out.println(info[i][j][k]); } ...

34. Help with 2 Dimensional Array    coderanch.com

I have a class which is taking a monte carlo simulation and run through i iterations of the code to determine the energy reduced and represent it graphically. My problem that I am getting stumped at is drawing my second 2x2 array reflecting the changes eg swapping the two elements of the array when the swapEnergy is less than the initialEnergy. ...

35. Iterating a Two Dimensional Array    coderanch.com

You need a nested loop. This can be done using the traditional way, or with the for-each loop: // traditional way // keep a reference so you don't need to call the method each time String[][] array = mConn.getMatrixQuantityArray(); for (int ma = 0; ma < array.length; ma++) { for (int mb = 0; mb < array[ma].length; mb++) { String p1 ...

36. Two Dimensional Array Question    coderanch.com

Putting this out there for anyone brave enough to try to nearly draw me a picture, cause I'm just not getting part of this: //Manually allocate differing size second dimensions. public class TwoDAgain { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //declare and initialize twoD array with 4 rows //and columns are ...

37. What are two dimensional arrays?    coderanch.com

38. help with itteration through a multi dimensional array?    coderanch.com

Good evening, all! I have encountered a tricky problem for me in a project where i wan't to populate a JTree component object with nodes which are constructed from a multidimensional array of tree data objects. Theese nodes are inserted into my treemodel with the insertNodeInto(DefaultMutableTreeNode node, DefaultMutableTreeNode parent, int index) method in the DefaultTreeModel class. Below i have posted the ...

39. Cloning a Three Dimensional Array    coderanch.com

I am taking a Java class. The test yesterday asked for code to deeply copy a 3D array. I had never figured out how to do it. But now I think I have (sort of). I would appreciate comments on my approach and an example using clone() int[][][] threeDim = new int[3][4][5]; int[][][] threeCloned = new int[threeDim.length][threeDim[0].length][threeDim[0][0].length]; // This is the ...

40. 2-Dimensional Arrays?    coderanch.com

Hi, I'm trying to make a 2-dimensional array of integers called grid with 4 rows and 6 columns. I'm supposed to write a loop that initializes the second row to store integers starting with 2 and incrementing by 3 for each element in the row. So the second row would have integers 2, 5, 8, 11, 14, 17. This is what ...

41. comparing elements in 2 dimensional array using java    go4expert.com

Hi, I have 2 dimensional array and i should compare the elements with one another and add it into an another array!!!!!!! The array i am using is a x a p m m m m m c c p d y a I should compare this array elements. I tried comparing column by column but i am getting the solution. ...

42. manipulation in double dimensional array    java-forums.org

i wish to get output like this 1 3 2 4 5 4 5 6 9 9 11 15 20 26 where 1 3 2 4 5 is input from user my code is import java.io.*; class nik1234 { public static void main(String args[])throws IOException { int i,j; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int arr[][]=new int [20][20]; for( j=5;j>0;j--) { i=0; arr[i][j]=Integer.parseInt(br.readLine()); ...

43. need help with two dimensional array and setting it up using user input    java-forums.org

I have been working on this for two and a half weeks now and still haven't figured it out. It is due 11:59pm EST on Sunday and was wondering if I could get a little help. I have to create a two dimensional array that will hold student id (an integer) and grade (an integer). Setup the size of the array ...

44. 2 dimensional array help!    java-forums.org

i want to make a program where i can enter in wins and loses for NFL teams. lets say the AFC north. i want to be able to enter each times wins and loses and have the program work out the win % and then sort them out in a table by who has the best record. i dont really no ...

45. about two dimensional array    java-forums.org

46. Two dimensional array    java-forums.org

47. multi or two dimensional array    java-forums.org

48. two dimensional arrays    java-forums.org

I have created a two dimensional array that gets the number of rows, columns, number to start with, and how much to count by : int [][] matrix = new int[r][c]; for (int i = 0; i

49. help w/ storing/scanning numbers in two dimensional arrays    java-forums.org

have a assignment that we have to accomplish the same work as in a previous assignment except use two dimensional arrays... this is my previous assignment A Computer Technology Instructor has a small class of 10 students. The instructor evaluates the performance of students in the class by administering 2 midterm tests and a Final Exam. Write a program that prompts ...

50. 2 dimensional array    java-forums.org

51. mutli dimensional array    java-forums.org

52. Two Dimensional Array Iteration Help    java-forums.org

//field Block[][] maze = new Block[5][5]; //method pubic boolean chechAdj(int x, int y){ //[I]x[/I] and [I]y[/I] are the current Block's indexes. int count = 0; for(Block[] Xblocks : this.maze){ //how can I slice [I]this.maze[/I] to -1 and +1 of [I]x[/I] and [I]y[/I] [B]excluding[/B] [I]x[/I] and [I]y[/I]? for(Block block : Xblocks){ if(block.wall == true) count +=1; } } return count; }

53. Help with Two Dimensional Array    java-forums.org

Okay so I have a two dimensional array and I am trying to find out how many even numbers have been generated, and I need to display the count. Below I started trying to create a method for findEven but ran into some problems with it when I tried to compile. Im not sure if I wrote the method correctly. Any ...

54. processing a 3 dimensional array    java-forums.org

OK, I'm curious -- why avoid multi-dimensional arrays, especially in places where they well model the problem domain? For instance, if you are creating a model for Conway's Game of Life, wouldn't you do this using a 2-dimensional array of game-cell? A sudoku grid or tic-tac-toe grid are other examples that come to mind. I've also had good success using 2-D ...

55. 2 dimensional arrays and encryption    java-forums.org

Ok individually i can do both but im not sure where to start when putting these two together. Bassically i want to read words from a text file then encrypt them in a two dimensional array. So say the first word is MATHEMATICS id first want to remove the duplicated letters then place the remaining letters in a 5x5 array filling ...

56. null in 2 dimensional array problem    java-forums.org

57. Two dimensional Array    java-forums.org

class JavaTest { String a; private double[][] table1; public JavaTest(String a, double[][]table2) { a = a; int t1 = table2.length; int t2 = table2[0].length; table1 = new double[t1][t2]; for(int i=0; i

58. Two Dimensional array    forums.oracle.com

59. One-Dimensional Array - accept input from user    forums.oracle.com

Here is what I have so far - i am lost on how to do the input from user? public class Sales { public static void main( String args[] ) { int array[] = { 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5 }; System.out.println( "Salary Statistics:" ); // for each array element, output a bar of the ...

60. creating a 2 dimensional array    forums.oracle.com

61. 2 Dimensional Java Array issue, Cards problem    forums.oracle.com

62. Scanning two dimensional Arrays    forums.oracle.com

64. need help with two dimensional array    forums.oracle.com

65. One Dimensional Array    forums.oracle.com

david_david: Perfect that fixed my sum problem just changing the double to and int. Now any suggestions on getting the array to print out on the screen? for example if I put +arrayEight[4] in my g.drawString("The numbers of the array are: "+arrayEight[4], 100, 150); I get it to print -20, but I need it to do the whole array. Do I ...

67. 2 Dimensional Array Help    forums.oracle.com

What is the best way for me to print the value in column 2 if the original substring (Inrec) is the value in column 1? For example, if Inrec.substring(93,95) is 'CR', then print '00', or if Inrec.substring(93,95) is 'HZ' print '05'. I know that somehow I must loop through column 1 for the incoming substring and when that is found, print ...

68. Getting errors on a 2 dimensional array when trying to randomize the number    forums.oracle.com

int numnodes = 6; //Randomly generate a number between 0 and 499 for the x and y coordinates for the nodes Random randomGenerator = new Random(); for (int x = 0; x < numnodes; ++x)( for (int y = 0;y < numnodes; ++y) int randomInt = randomGenerator.nextInt(500); int randomInt2 = randomGenerator2.nextInt(500); log("Generated : " + randomInt + randomInt2); ) ) ) ...

69. 2 -Dimensional Array    forums.oracle.com

When you make a post you should not bold the whole text, only the bit you want to highlight. Don't ask for code, regulars around here consider that cheating and think you will learn better if you work it out for yourself with a few pointers. So you should post your code and place {code} before and after it to retain ...

70. Adding numbers in a 2 dimensional array    forums.oracle.com

Hey guys I'm new to java and I am looking for some help. I want to create a program that will add up the numbers in a two dimensional array. I have most of the code down but I keep getting errors. Here's my code: class averageNum { // initialize # of rows int[][] arr = { { 1, 0, 12, ...

71. regarding multi dimensional arrays    forums.oracle.com

72. 3-Dimensional Arrays?!?    forums.oracle.com

I've got a lab project that requires me to read in questionnaire data (3 integers) from a file, then put those integers into a 3-Dimensional array. Here's the idea: int [][][] poll = new int [4][3][2]; // 4 Age Ranges, 3 Opinions, 2 Genders int readAge=0, readOpinion=0, readSex=0; // Read data from file readAge = scan.nextInt(); readOpinion = scan.nextInt(); readSex = ...

73. Two Dimensional array help.    forums.oracle.com

74. 2 Dimensional array    forums.oracle.com

75. 2dimensional array    forums.oracle.com

76. 2 dimensional array    forums.oracle.com

77. I need 2 count the distance between two points in a two dimensional array?    forums.oracle.com

Well, I have a 2D array. Its really simple. Beginners stuff. I get the user to input the values(integers) into the array. I then give them an option to measure the distance between two of the points that they have already enetered. But I'm having problems with the actual process of counting the distance.

78. Image disappears from two dimensional array    forums.oracle.com

79. multi dimensional arrays problem    forums.oracle.com

80. Return a two dimensional array    forums.oracle.com

81. 1-Dimensional Array Manipulation    forums.oracle.com

Hello there, I'm a complete beginner at Java and have been given a question that I've no idea how to approach. The basic background is that the program needs to randomly generate a 4-digit code and ask the user to guess what it is. The output required is 1) The number of digits that are correctly identified in the code AND ...

82. 2 dimensional arrays a little help    forums.oracle.com

83. Multi Dimensional Array    forums.oracle.com

1-dimensional array. That's easy. Has a length. 2-D array. Same as a 1-D array, but also has a width. eg. cartesian plane, but with only x >= 0 and y >= 0 3-D array. Same as a 2-D array but it also has a depth. Cube shape. n-dimensional arrays: They get more and more complex. Generally, it's the same as a ...

84. How does java stores 2 dimensional arrays in memory    forums.oracle.com

In the C programming language, the array elements from the same row are stored consecutively (Ex: a[1,1],a[1,2], a[1,3]... ), namely row-major. On the other hand, FORTRAN programs store array elements from the same column together(Ex: a[1,1],a[2,1],a[3,1]...) , called column-major. I'm 90% sure, that java stores 2 dimensional arrays of primitives types, the way C does, but I just want to make ...

85. Variable number of two dimensional arrays into one big array    forums.oracle.com

My whole routine looks a little more complicated than what i've posted here. I tried to break it down as simple as possible. "MyClass" only does instantiate a Retriever-Class that GETs information from a webserver, puts it into a multidimensional array and then provides this array using my getData methode. But that's beneath the point imho. I need my data in ...

86. how 2 dimensional array works internally    forums.oracle.com

The elements of the "outer" array are references to the "inner" arrays which are, of course, the referenced array type. Now, what difference does that make in your coding? Edit: Too Slow! P.S. I keep wanting to pronounce his moniker with the S and T swapped and with an H after the S.

87. Reflection and multi dimensional arrays    forums.oracle.com

I have code that uses reflection on an input object and does some processing on the data stored in the object. The input object can be anything like String or int or double etc., sometimes it can be a multi dimensional array. I know how to do it for two dimensional arrays but I would prefer something that would work for ...

88. Two dimensional array    forums.oracle.com

O.K. So I'm completely new to Java itself but have messed around with other languages in the past. Taking the comments about the thread originator's contributions into account lets try and do this in simple plain text. Yes/no responses will be sufficient to begin with even when I haven't asked proper questions. Q1. Does Java provide direct support for multidimension arrays? ...

90. How do I compare two dimensional arrays    forums.oracle.com

Lets try this again, with me typing out the right code: char Row1 = 'a'; char Row2 = 'a'; char [] [] array1 = new [5] [Row1]; char [] [] array2 = new [5] [Row2]; for(int count = 0; count < array1.length; count++) { if(array2[count][count] == array2[count][count]) { System.out.print("Arrays are equal"); } }

92. 2 dimensional array as an argument    forums.oracle.com

Yes, when passing arrays to a method it works "like" pass by reference (I guess pass by value but at the array pointer level). So the object pointer will not be changed but that value it points to. If you need a workaround maybe you should try to make a copy of the array inside your method and perform work at ...

93. 2 dimensional array lookup    forums.oracle.com

94. 2 Vectors Into 1 Multi Dimensional Array.    forums.oracle.com

Hi, I"ve been Digging hardly to find a way to convert 2 vectors into 1 Multi Dimensional Array. and failed of success E.g. 2 Vectors V1 - Id 1,2,3,4,5,6,7..n V2 - Msg ,a,b,c,d,e,f,g, I Need to convert both of them into : ONE Multi Dimensional Array. HOW? ? Please Help.. Appritiate for Code Example. Thanks Y

95. how can i initialize a 2 dimensional array in constructur    forums.oracle.com

Don't use C++ style coding. In java argument is used as value not reference (in contex to C++). So you need to copy data (by index) from one array to another array or return 2-D array from function and set at calling point. int[][] fun(int[][] a, int[][] b){ //create 2-D array //do operation return new created 2-D array. } For constructor, ...

96. Problem with try catch validation and two dimensional array    forums.oracle.com

Encephalopathic wrote: Word of advice: you will have better luck getting help if you don't assume that we know what your program does or how it runs. Oops. i knew i was missing something.. heh I'm supposed to create application to add parts to the table as well as look up part numbers. The table must be an array of objects ...

97. Visualising multi dimensional arrays    forums.oracle.com

what set of brackets would represent what in a 3D array ? A 2D array is like: arrOne[rows][cols] Nothing hard and fast about that. Granted that [rows][cols] is more commonly used, nothing prevents me from using a 2D array as [cols][rows]. Or [cows][fields]. Or [hairs][heads]. Lets look at an example of a multidimensional array of floor tiles. Dimension : units 1 ...

98. Multi dimensional arrays    forums.oracle.com

99. 2 -Dimensional Array    forums.oracle.com

100. multi dimensional array!!!    forums.oracle.com

Hello Vidya, first i want to say awesome... reason for this error is not IndexOutOfBound exception where as it is type compatibility related problem:- when you put b2[1] [2] [0]=b; in your code. then left side expression requires one dimensional array whereas b (right side expression) is a two dimensional array. here you can either omit deep root of left side ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.