I will try to explain it to you without code, since I think you should learn from yourself.
You have an array table1
that can only have an element in position 0.
You need to give a value to that position like this: table1[0] = new Tables();
now it depends on the complexity you have but with what you posted I would just do a for
from 0 to table1[0].tablesCount.length
and inside the for a with something like this: System.out.println("Table "+table1[0].tablesCount[i]....)
I belive in you 😉
solved How to make an inner class