Please, provide an exact definition of what you would like to do. For what input, what is the expected output? Maybe provide some examples.
Without knowing what exactly you wanted, I created the following code.
This takes a number n, and displays the first n positive numbers. Then the line below the first n capital letters (starting from 'A').
The next two lines are the same as above, but starting with one offset (numbers starting from 2, letters from 'B').
The next two lines with an offset of two and so on.
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++)
{
int val = i;
for (int j = 0; j < n; j++)
System.out.print(val + j + 1);
System.out.println();
for (int j = 0; j < n; j++)
System.out.print((char)('A' + val + j));
System.out.println();
}
}
}