public class Main { public static void main(String[] args) { Point p = new Point(3, 4); // TODO: print p.getX() and p.getY() } } // TODO: class Point with x, y, constructor, getX, getY class Point { }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion