I made a code using my No2 class
but I'm confused about how to print out entire code without using array.
I just know one way to print out this code, I'm using System.out.println()
7 times.
Please help me to figure out another way/handy way to do it.
public static void main(String[] args) {
No2 a1 = new No2("1","A",3,6000);
No2 a2 = new No2("2","B",4,8000);
No2 a3 = new No2("3","C",1,1000);
No2 a4 = new No2("4","D",2,4000);
No2 a5 = new No2("5","E",5,10000);
No2 a6 = new No2("6","F",2,4000);
No2 a7 = new No2("7","G",3,6000);
}