public Segment(short startCode,short endCode,boolean hasMap){
  this.endCode=(0xffff & endCode);
  this.startCode=(0xffff & startCode);
  this.hasMap=hasMap;
}

public Segment ( short startCode , short endCode , boolean hasMap ) { this . endCode = ( 0xffff & endCode ) ; this . startCode = ( 0xffff & startCode ) ; this . hasMap = hasMap ; }
create a new segment
