I need to create an array of integers who will include all numbers between 0 to 53, but some of this integers I want to exclude from the array. Is there any function to do it in Java?
I have an array with the exclusions. There is no logic behind this (In fact, there is a logic, but I don't know how to express this), thus I created an array to specify:
int[] exclusions = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53};
I saw seen an example of something similar to what I want to do, but in C# (That question is about a random number, which is not what I want, but similar to).