import java.util.*; public class If { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); System.out.println("请输入用户:"); String name =in.next(); System.out.println("请输入密码:"); int bb =in.nextInt(); String a="青"; int b= 123; if(a.equals(name) && b==bb){ System.out.println("你好,青"); }else { System.out.println("你不是青!"); } } }
Java第三章 P72 输出”欢迎你,青“ 否则输出”对不起,你不是青“,布布扣,bubuko.com
时间: 2024-12-27 23:47:14