private String doTransformation(String[] args){
  List<String> argsList=new ArrayList<>();
  for (  String arg : args) {
switch (arg) {
case "-i":
      interactive=true;
    break;
case "-v":
  verbose=true;
break;
case "-np":
noPause=true;
break;
case "-nojmx":
noJMX=true;
break;
default :
argsList.add(arg);
}
}
return reformatArguments(argsList);
}

private String doTransformation ( String [ ] args ) { List < String > argsList = new ArrayList < > ( ) ; for ( String arg : args ) { switch ( arg ) { case "-i" : interactive = true ; break ; case "-v" : verbose = true ; break ; case "-np" : noPause = true ; break ; case "-nojmx" : noJMX = true ; break ; default : argsList . add ( arg ) ; } } return reformatArguments ( argsList ) ; }
actually does arguments transformation .
