print line in order.
fix Point.java

still got a problem: print subsegments