I'm trying to create some classes but the number of them is determined by the user. The class I want to make:
public class test {
public class test() {
int num;
//etc.
}
}
Main class:
public class main {
public static void main(String[] args) {
test class1 = new test();
test class2 = new test();
test class3 = new test();
//etc.
}
}
The problem is that currently the maximum amount of classes the user can create depends on my patience.
Is there a way to make it easier/shorter?
Ps: The project I want to use this for doesn't work with lists!