I've got array like this
int[] array = {5, 100, 20, 66, 16};
price = new int[] {5, 100, 20, 66, 16};
for(int i = offset; i < price[price.length - readLength]; i++) {
price[i] = price[i] * (discount / 100);
System.out.println(price[i]);
}
I need to get new array after this only with three numbers of the old array. How can I do it? I need after that something like this [100,20,66]