package cn.bjsxt.others;
import java.util.Scanner;
public class Exercise {
public static void main(String[]args){
String [] mingZi =new String[]{"zhang","li","wang"};
for(int i=0;i<mingZi.length;i++){
System.out.println((i+1)+":"+mingZi[i]);
}
Scanner input =new Scanner(System.in);
System.out.println("请输入用户名:");
String s = input.next();
for(int i=0;i<mingZi.length;i++){
if(s==mingZi[i])
System.out.println(s);
}
}
}
Plainforever
qq_连环_04358155
蕉啊3932370
慕的地6079101
慕雪9760236
kid123