public FileVersion(File f){
  this.f=f;
  name=f.getName();
  String[] ss=name.split("[-_]");
  if (ss.length > 1) {
    String ver=ss[ss.length - 1];
    name=name.substring(0,name.length() - ver.length() - 1);
    ver=ver.substring(0,ver.length() - 4);
    this.ver=new Version(ver);
  }
}

public FileVersion ( File f ) { this . f = f ; name = f . getName ( ) ; String [ ] ss = name . split ( "[-_]" ) ; if ( ss . length > 1 ) { String ver = ss [ ss . length - 1 ] ; name = name . substring ( 0 , name . length ( ) - ver . length ( ) - 1 ) ; ver = ver . substring ( 0 , ver . length ( ) - 4 ) ; this . ver = new Version ( ver ) ; } }
instantiates a new file util .
