I have two array a[] and b[] but i want to transfer the contents into two dimensional array c[][] is that possible......... Please help me

A "two dimensional array" in Java is really just an array of arrays, so if you have
int[][]c = new int[2][5];
then c[0] is an array of 5 ints and c[1] is another array of 5 ints.
The following code is valid, and relevant to your question...

int[] a = new int[4];
      int[] b = new int[6];
      int[][] c = new int[2][];
      c[0] = a;
      c[1] = b;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.