public void removeSegment(int shapeIndex,int segmentIndex){
  List<WKTSegmentList> shapeList=segmentList.get(shapeIndex);
  if ((segmentIndex >= 0) && (segmentIndex < shapeList.size())) {
    shapeList.remove(segmentIndex);
  }
}

public void removeSegment ( int shapeIndex , int segmentIndex ) { List < WKTSegmentList > shapeList = segmentList . get ( shapeIndex ) ; if ( ( segmentIndex >= 0 ) && ( segmentIndex < shapeList . size ( ) ) ) { shapeList . remove ( segmentIndex ) ; } }
removes the segment at the specified index .
