✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
¿Hay errores de compilación o ejecución en el siguiente código?
import java.util.*;class Punto<T> { private T x, y; public Punto (T x, T y) { this.x = x; this.y = y; } public static void main(String[] args) { Set<Punto<Integer>> lp = new TreeSet<> ( Arrays.asList(new Punto<Integer>(3, 3), new Punto<Integer>(0, 0))); }}