I am having problems with arrays, mainly I am looking for a way to remove a sub array from an array but with an exact sequence. For example:
int[] greaterArray = {8, 3, 4, 5, 9, 12, 6, 3, 5}
int[] lesserArray = {3, 4, 5}
The result would be:
int[] resultArray = {8, 9, 12, 6, 3, 5}
So as you see it would remove only {3, 4, 5} as a sequence not a separate value, values 3, 5 are kept in a greater array.
I've done it with the to string conversion and cutting sub strings, but there probably is an easier and more elegant way.