Input Validation: Do not accept a number less than one for the number of floors. Do not accept a number less than 10 for the number of rooms on a floor. I am getting one error code. Here is what I got!

import java.util.Scanner; public class HotelOccupancy { Floor[] floor; HotelOccupancy() // the error appears here and it says invalid method declaration, return type required. { Scanner keyboard = new Scanner(System.in); System.out.print("How many floors does the hotel has? "); int nbFloor = keyboard.nextInt(); floor = new Floor[nbFloor]; for(int i = 0; i < nbFloor; i++) { System.out.print("Number of rooms on floor " + (i+1) + ": "); int nbRoom = keyboard.nextInt(); System.out.print("Number of rooms occupied on that floor: "); int nbOccupied = keyboard.nextInt(); floor[i] = new Floor(nbRoom, nbOccupied); } } void displayOccupancy() { for(int i = 0; i < floor.length; i++) System.out.println("Floor " + (i+1) + " is used at: " + floor[i].used() + "%"); } public static void main(String[ ] args) { HotelOccupancy ho = new HotelOccupancy(); ho.displayOccupancy(); } class Floor { int nbRoom; int nbOccupied; Floor(int nbRoom, int nbOccupied) { this.nbRoom = nbRoom; this.nbOccupied = nbOccupied; } double used() { return ((double) nbOccupied / (double) nbRoom) * 100.0; } } }

Any help is greatly appreciated. Thank you!