I need to add a range of numbers to a list based on specific conditions. The method recieves a String, and based on value of the String, specific list of values should be added to the list.Name variable has name of the selected product and numbers are serial number of products that are similar to the selected product.I am wondering if there is any better approach to do it.ArrayList numbers = new ArrayList<Integer>();switch (name) { case A:    for (int i = 1; i <= 100; i++) {        if ((i >= 46 && i <= 50) || (i >= 60 && i <= 73) || i == 91                || i == 96 || i == 97) {            continue;        } else {            numbers.add(i);        }    }    break; case B:    for (int i = 1; i <= 100; i++) {        if ((i >= 50 && i <= 55) || (i >= 65 && i <= 88) || i == 90                || i == 98 || i == 99) {            continue;        } else {            numbers.add(i);        }    }    break;}  return numbers;
Adding a specific list of numbers to an array
java;performance