String[] item ={"[1]hotdog", "[2]eggpie","[3]menudo","[4]pizza","[5]lumpia"};
int[] cost = {5, 10, 15, 20, 25};
int[] selling = {10,15,20,25,30,};
int[] qty = {2,4,6,8,10};
for(int b = 0; b<5;b++) {
for(int c = 0; c<=1;c++) {
for(int d = 0; d<=1;d++) {
for(int e = 0; e<=1;e++) {
System.out.println(" " + item[b] + "\t" +
cost[c] + "\t\t" + selling[d] + "\t\t" + qty[e]);
}
}
}
}
It doesn't run how I want it to run; I want it to run like a table but using a for loop only not using an array[][].