public String toString(){
  if (!parsed)   return "Version[unknown]";
  if (!preRelease)   return String.format("Version[%s.%s.%s]",major,minor,build);
 else   return String.format("Version[%s.%s.%s-%s%s]",major,minor,build,prebuild,prereleaseType);
}

public String toString ( ) { if ( ! parsed ) return "Version[unknown]" ; if ( ! preRelease ) return String . format ( "Version[%s.%s.%s]" , major , minor , build ) ; else return String . format ( "Version[%s.%s.%s-%s%s]" , major , minor , build , prebuild , prereleaseType ) ; }
convert the version to string format , for use in printing to the console or other implementations
