public static String parseExperimentName(String name){
  Scanner scanner=new Scanner(name);
  StringBuilder csvName=new StringBuilder();
  scanner.useDelimiter("_");
  for (int i=0; i < 8; i++) {
    if (scanner.hasNext()) {
      csvName.append(scanner.next() + ",");
    }
 else {
      csvName.append(",");
    }
  }
  scanner.close();
  return csvName.toString();
}

public static String parseExperimentName ( String name ) { Scanner scanner = new Scanner ( name ) ; StringBuilder csvName = new StringBuilder ( ) ; scanner . useDelimiter ( "_" ) ; for ( int i = 0 ; i < 8 ; i ++ ) { if ( scanner . hasNext ( ) ) { csvName . append ( scanner . next ( ) + "," ) ; } else { csvName . append ( "," ) ; } } scanner . close ( ) ; return csvName . toString ( ) ; }
parses the experiment name .
