-1
기호 : 방법 nextDoublenextDouble 오류 기호 : 방법 nextDouble
nextDouble "오류"
가 하나라도 도와 줄 수는 그 문제를 해결하기 위해? java.util.Scanner
와 String
을 혼동
double fahrenheit;
String input = JOptionPane.showInputDialog(null, "Enter the Fahrenheit degre : ");
fahrenheit = input.nextDouble();
double Celsius = 5/9 * (fahrenheit-32);
JOptionPane.showMessageDialog(null, " in Celsius : " + Celsius);
에서 반환 구문 분석에 BTW는 정수 분할 문제가있어 - 사용을'더블 섭씨 = 5/9.0 * (화씨-32); ' – Reimeus