Main.java:13: error: incompatible types: inference variable E has incompatible bounds
List< Integer > list = List.of( array ) ;
^
equality constraints: Integer
lower bounds: int[]
where E is a type-variable:
E extends Object declared in method <E>of(E)
1 error