public Segment(char type, int start, int end) { this.type = type; this.start = start; this.end = end; } }