{ for (int i=0; i<size; i++) { System.out.println("\t"+mm1+"\t "+mm2); }
>>> in my main class i got:
System.out.print("Enter the number of vertices between 3 to 25: "); size = BasicIO.readInt(); mm.mm1 = new double [size]; mm.mm2 = new double [size]; mm.setSize(size);
... switch(menuOperation) { case 1: // list co-ordinates original polygon mm.displayOriginal();
break;
So when i want to display my table i have an infinite loop, what i have to do to avoid that?
mm.mm1 = new double [size]; mm is an object, mm1 is the intance of the object mm
i need to use "new" to input data in my array because in my class program i have defined two arrays mm1 and mm2, i want that those two arrays have the same size that's why i initialise the array in my main class