public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
System.out.print("选择你要查看的标题:\n--------------\n1、个人简介\n2、我与传智.黑马\n3、退出\n选择:");
int i = sc.nextInt();
if (i == 1) {
Introduce();
} else if (i == 2) {
WhyChooseItHeiMa();
} else if (i == 3) {
System.out.println("成功退出!");
break;
} else {
System.out.println("你选择的内容笔者没写呵呵哒!");
}
//内容完结!
}
}