JAVA题 求解答 可以追加

2025-04-13 22:27:35
推荐回答(1个)
回答1:

1D 2 D 3D 4A 5B
6 public boolean isEven(int a){
if(a%2==0){
return true;
}
return false;
}
编程题:
public class Tempeature{
private double tempeature;
public double getDouble(double tempeature){
double temp=9/5*tempeature+32;
return temp;
}
public static void main (String args[]){
Tempeature t= new Tempeture();
System.out.println(t.(12.3));

}
}
编程2:
public class flower
{
zpublic static void main(String[] args)
{

for (int t=100;t<=999;t++)
{ int a=t/100,b=(t%100)/10,c=(t%100)%10;
if (t==a*a*a+b*b*b+c*c*c)
{
System.out.println(t);

}

}
}
} 给分吧!!!