double+if....else 语句怎么改为正确
public class Code{
public static void main(String[] args){
double a = 3.0;
double b = 2.9;
if(a- b == 0.1){
System.out.println("OK");
}else{
System.out.println("ERRO");
}
}
}
public class Code{
public static void main(String[] args){
double a = 3.0;
double b = 2.9;
if(a- b == 0.1){
System.out.println("OK");
}else{
System.out.println("ERRO");
}
}
}
2017-09-05
举报