Hi, Can anyone tell me why the following program is showing numberformatexception . import java.io.*; //public class Calc extends Object { public class Calc { public static void main(String[] args){ if( args.length > 3 ){ System.out.println("Calc expects to find three items on the command line"); System.out.println("operand_1 operator operand_2"); System.out.println("where the operands are floating point numbers"); System.out.println("and the operator is one of + - / *" ); System.exit(0); } String wrk = args[0] ; try { //float op1 = new Float(wrk).floatValue() //First create your object here and initialize also. Float obj; obj = new Float(wrk);//will create an object float op1; op1 = obj.floatValue(); String D; D = args[2] ; float op2 = new Float(D).floatValue() ; float rslt = Float.NaN ;