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


1 2 3 4 | Map<String, Boolean> map = new HashMap<>(); map.put( "this" , true ); map.put( "that" , false ); map.put( "other" , true ); |