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("你不是青!"); } } }