Posts by Matheus Moraes Porto • 1 point
1 post
-
0
votes2
answers80
viewsA: Return Null Print Java
I would advise you to create a constructor for Points with the parameters x and y. As follows: public class Ponto { private int x,y; public Ponto(int x, int y) { this.x = x; this.y = y; } And when…