5黑马币
最佳答案import java.util.*;
public class IfDemo {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("请输入水果种类:");
String name = input.nextLine();
System.out.println(name);
if(name.equals("苹果"))
{
System.out.println(name+"应放入001号货架上!");
}
else if(name.equals("香蕉"))
{
System.ou ...
| |
| |
| |
| |
| |
| |
| |
| |
RE: If循环语句
| |
| |
| |
| |