Hello, such a question, is there such a structure?
public static class Room{ public int id; public String name; public String title; public int seats; public int base_id; } Room[][] room = ... // инициализация 8х7
How to find the index (x) room[3][x]
at which for example base_id = 3
? What are effective methods besides iterating over the entire array in a loop?
MapHash
instead of an array, usebase_id
as a key. - Frozik6k