If i want to create a list of variables(boolean), is it possible to say
public Button(int num)
{
boolean ("b" + num) = true;
}
Thanks in advance
Map<String, Boolean> map = new HashMap<>(); map.put("this", true); map.put("that", false); map.put("other", true);