logo

Crowdly

Browser

Add to Chrome

class Punto { int x , y ;   Punto( int x , int y ) { t...

✅ 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);

}

}

More questions like this

Want instant access to all verified answers on moodle.elpuig.xeill.net?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome