Make array out of a array item
in
Programming Questions
•
9 months ago
Is it possable to make an new array out of an array item?
for example I would like to make appel a new array
String[] Fruit = new String[3];
Fruit[0] = "appel";
Fruit[1] = "150";
Fruit[2] = "30";
String[] Fruit[0] = new String[3];
Fruit[0][1] = "green";
Fruit[0][1] = "red";
Fruit[0][1] = "yellow";
// I want it to be called Appel[1] = "green"; instead of above
for example I would like to make appel a new array
String[] Fruit = new String[3];
Fruit[0] = "appel";
Fruit[1] = "150";
Fruit[2] = "30";
String[] Fruit[0] = new String[3];
Fruit[0][1] = "green";
Fruit[0][1] = "red";
Fruit[0][1] = "yellow";
// I want it to be called Appel[1] = "green"; instead of above
1