How does java batch execute methods?

for example, I want to execute:

imageView1.setVisibility(View.GONE);
imageView2.setVisibility(View.GONE);
...
imageViewX.setVisibility(View.GONE);

is there any method that can be executed in batch, such as using for?

Mar.13,2021

put imageView into List, and then traverse List, for example:

List list = new LinkedList();
list.add(imageView1);
list.add(imageView2);
...
// list
list.forEach(view->.setVisibility(View.GONE));

put your ImageView in List

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46bf8-59162.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46bf8-59162.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?