✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Punto {
int x, y;
Punto(int x, int y) {
this.x = x;
this.y = y;
}
}
public class Test {
public static void main(String[] args) {
Punto[] puntos = new Punto[2];
puntos[0] = new Punto(1, 2);
System.out.println(puntos[0].x);
}
}