A hostel has rooms, and a room only makes sense inside a hostel. Write a class Hostel with:
Hostel(String name),Room with a constructor Room(int number) and a method String describe() that returns Room <number> of <name> Hostel.The inner class must use the hostel's name directly, without any getter.
One line with the hostel name (one word) and two room numbers, separated by spaces.
Two lines: the description of the first room and the description of the second room.
Input:
Ganga 12 40
Output:
Room 12 of Ganga Hostel
Room 40 of Ganga Hostel

A hostel has rooms, and a room only makes sense inside a hostel. Write a class `Hostel` with: - a private field for the hostel name and a constructor `Hostel(String name)`, - an **inner class** `Room` with a constructor `Room(int number)` and a method `String describe()` that returns `Room <number> of <name> Hostel`. The inner class must use the hostel's name directly, without any getter. ### Input Format One line with the hostel name (one word) and two room numbers, separated by spaces. ### Output Format Two lines: the description of the first room and the description of the second room. ### Example Input: ``` Ganga 12 40 ``` Output: ``` Room 12 of Ganga Hostel Room 40 of Ganga Hostel ``` Write a class `Counter` that keeps a number. It has: - a constructor `Counter(int start)`, - `int getCount()` that returns the current number, - an inner class `Clicker` with a constructor `Clicker(int step)` and a method `void click()` that adds the step to the counter's number. Two clickers made from the same counter change the same number. ### Input Format One line with four integers: `start`, `step1`, `step2` and `times`. Steps can be zero or negative, and `times` can be 0. ### Output Format Two lines. The first clicker (step1) is clicked `times` times, and the first line is the count after that. Then the second clicker (step2) is clicked once, and the second line is the count after that. ### Example Input: ``` 10 1 5 3 ``` Output: ``` 13 18 ``` A shop bill keeps a list of items. The item is only a helper of the bill, so it is hidden from everyone else. Write a class `Bill` with: - a **private inner class** `Item` that stores a name (`String`) and a price (`int`), - `void add(String name, int price)` that adds an item to the bill (the same name may be added again, each is a separate item), - `int count()` that returns the number of items, - `int total()` that returns the sum of all the prices. The main code never mentions `Item`. ### Input Format - Line 1: an integer `n` (it can be 0). - Next `n` lines: an item name (one word) and its price. ### Output Format ``` Items: <count> Total: <sum> ``` ### Example Input: ``` 3 rice 60 dal 45 oil 120 ``` Output: ``` Items: 3 Total: 225 ```