//TIP To Run code, press or // click the icon in the gutter. public class Main { public static void main(String[] args) { //TIP Press with your caret at the highlighted text // to see how IntelliJ IDEA suggests fixing it. Point p1 = new Point(0,0); Point p2 = new Point(1, 1); Segment s = new Segment(p1, p2); System.out.println(s.getLength()); } }