as per to previous post thats scanner works just fine in the previous post reply thanks for u all for that scanner suggestion
here here is the code
CODE
import java.util.*;
import java.lang.*;
public class expf
{
public static void main (String args[])
{
Scanner in = new Scanner(System.in);
double degree=10.0;
double feranite=20.0;
String line;
try
{
System.out.println("Enter the degree");
line=in.nextLine();
feranite=Double.valueOf(line);
}
catch(Exception e)
{
}
degree=(((feranite)-32)/(1.8));
System.out.println("the value of feranite is"); // here
System.out.print(degree);
}
}
instead of u using that two system.out statement can i make it one it doest go though in simple system.out.println statement therefore i have to again print through system.out.print
ne other way u guys know thanks for info
This post has been edited by prajayshetty: 11 Jun, 2008 - 09:19 AM