I have generated an ascii chart from 0-127; however, I don’t know how to group these numbers into columns depending on how many columns the user wishes.
Ex:If the user wishes 6 columns
1 2 3 4 5 6
7 8 9 10 11 12
Ex:If the user wishes 3 columns
1 2 3
4 5 6
7 8 9
10 11 12
What I have so far...any help would be appreciated...
Code:public class Practice05
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int num_group;
System.out.println("How Many Groups?");
num_group = input.nextInt();
for (int x = 0; x<128; x++)
{
System.out.printf("%C %X %d\n", x, x, x );
}
}
}

