Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.Arrays; public class Main { private final static Integer[] nintendoPlatformIds = new Integer[] { 3, 4, 9, 21, 23, 36, 43, 52, 57, 79, 87, 101, 106, 117, 138 }; private final static Integer[] playstationPlatformIds = new Integer[] { 18, 19, 22, 35, 88, 129, 143, 146 }; private final static Integer[] xboxPlatformIds = new Integer[] { 20, 32, 86, 145 }; private final static Integer[] pcPlatformIds = new Integer[] { 94 }; public static final int PLATFORM_COUNT = 150; private static ArrayList<Integer> getOtherPlatformIds() { Integer[] other = new Integer[PLATFORM_COUNT]; for (int i = 0; i < PLATFORM_COUNT; i++) { other[i] = i; } ArrayList<Integer> range = new ArrayList<Integer>(Arrays.asList(other)); range.removeAll(Arrays.asList(nintendoPlatformIds)); range.removeAll(Arrays.asList(playstationPlatformIds)); range.removeAll(Arrays.asList(xboxPlatformIds)); range.removeAll(Arrays.asList(pcPlatformIds)); return range; } }