public class
Test {
public static void main(
String[] args){
if( args.length > 0 ||
convert( args[0] )) {
System.out.print("Good ");
}
else {
System.out.print("Bad ");
}
System.out.println( number );
}
static float number = 0 ;
static boolean convert( String s ){
try {
number = Float.parseFloat( s );
return true ;
}catch (NumberFormatException e ){
number = Float.NaN ;
return false ;
}
}
}
Help me this code step by step especially at static boolen convert