Doubt in taking the array type

in the main function when i am taking my integer array as:

int[] arr={10,20,3};
and then calling the generic displya function it is showing error
the method display(T[]) is not applicable to int[].

can anyone tell me why?

Hey @VinayakSingh11111
Generic methods only work with subtypes of Object. Integer is a sub type of Object. int is not an object but a primitive.