Command line arguments are converted in double

class cmdlntodbl
{
public static void main (String args[])
{
int i = Double.valueOf(args[0]).doubleValue();
int j = Double.valueOf(args[1]).doubleValue();
//int k = i + j;
System.out.println(“the sum of two command line argument is =” + (i+j));
}
}

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.