D
D
Dima2019-04-28 22:57:32
Java
Dima, 2019-04-28 22:57:32

How to search for a value in multiple ArrayList?

Good evening! There are 8 ArrayList with different words inside. There is also a variable of type String in which some word is written. How to organize the search for this word in all Sheets at once? Each sheet has unique words, no repetitions

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UNy, 2019-04-29
@UNy

ArrayList has an addAll method, i.e. if you need to add everything from sheet B to sheet A, write A.addAll (B). I think the idea is clear :) stuff everything into 1 sheet and walk through it. Maybe there are better ways, not sure :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question