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?
MapHashinstead of an array, usebase_idas a key. - Frozik6k