• Post Reply Bookmark Topic Watch Topic
  • New Topic

Making 2-D array from 1-D Array.

 
SungChan Park
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, All-members !
I want some code snippet as subject indicate.

I want to use A1[][] n'th row to make 2-D A2[][] in the above code.
A2[][] will be of the form for example.
=============================================
{{"Flintstones", "Fred", "Wilma", "Pebbles", "Dino"}}
=============================================
I wonder if you fully understood my purpose.
Thanks.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, you are making a 2D array out of a 2D array...

I think you want to get a one dimensional array out of a two dimensional array? right?



-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!