get tjhe last 12 items in an array code example Example: last 10 element of array System.out.print(Primes1.get(Primes1.size() - 1) + " ");