But I just told you how to do that ...
kind regards,
Jos
Once again I am sorry, but I am a begginner in Java programming. I tried to do what you told me but I have one error. Line 17 has the error message that reads [PHP]1 error
----jGRASP wedge2: exit code for process is 1.[/PHP]
[PHP]import java.util.*;
// Converter.java
public class Converter
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter temp: ");
int temp = sc.nextInt();
System.out.println(convertToC(temp));
}
public static int convertToC(int temp)
{
return ((temp - 32 ) * 5/9);
}
{
for (int f= getFahrenheit()); f <= 212;
f= getFahrenheit())
System.out.println(f+"F = "+convertToC(f)+"C");
for (int f= getFahrenheit();
f <= 212; f= getFahrenheit())
System.out.println(f+"F = "+convertToC(f)+"C");
}
}[/PHP]