Sto realizzando un metodo che effettua il popolamento automatico di un array di oggetti. Purtroppo non posso usare gli arraylist... quindi mi sono dovuto adattare. Il codice funziona,
però vorrei sapere se è possibile snellirlo.

codice:
public void popolamento() {
		Scanner sc = new Scanner(System.in);

		System.out.println("Inserisce cognome: ");
		String cognome1 = sc.next();

		System.out.println("Inserire nome: ");
		String nome1 = sc.next();

		System.out.println("Inserire giorno: ");
		int giorno1 = sc.nextInt();

		System.out.println("Inserire mese: ");
		int mese1 = sc.nextInt();

		System.out.println("Inserire anno: ");
		int anno1 = sc.nextInt();

		System.out.println("Inserire tipo abbonamento: ");
		int tipo1 =sc.nextInt();

		
		if (contatore == 1) {
			array[0] = new Gestione_palestra(cognome1, nome1, giorno1, mese1, anno1, tipo1);
			contatore++;
		} else {
			Gestione_palestra[] array3 = new Gestione_palestra[contatore];
			for( int i = 0; i < array.length; i++ ){
				array3[ i ] = array[ i ];
			}
			array3[contatore - 1] = new Gestione_palestra(cognome1, nome1, giorno1, mese1, anno1, tipo1);
			array = array3;
			contatore++;
		}