How to add elements in array?

striker69

New Member
See the code for example:\[code\]public Core(){ class1 = new int[5]; //declares array for 5 class class2 = new int[5]; //delcares array for 5 class System.out.println("Please type 1 for First Classe:"); select = input.nextInt(); if(select == 1) { }}\[/code\]Alright. If the user select the option number 1, occupy an place of the in the memory of array. For example: \[code\]class1 = new int[4];\[/code\]Or, if case exceed the memory appears one message.
 
Back
Top