我有一个大学作业,我必须从用户那里获得名字、中间名和姓氏,以及他们的年龄,并使用姓名首字母之类的东西给他们一个银行 ID。但这不是我来这里要问的。
想找点乐子,让“假想银行”不小心告诉用户这是骗局!然后会弹出一个错误并删除该意外的文本行,将其替换为正常的“我们期待帮助您!” 线。我需要知道的只是删除以“在想象银行,我们”开头的那行文本,谢谢!
System.out.println("Hello " + first_name + " " + last_name + ", greetings from the Imaginary Bank!");
System.out.println("To access your account, please use the following ID: " + first_init + middle_init + last_init + age);
System.out.println("At Imaginary Bank we look forward to scamming you and stealing your money!");
try
{
Thread.sleep(11000);
}
catch (InterruptedException e) {
e.printStackTrace();}
System.out.println("ERROR! ERROR! ERROR! ERROR! ERROR! ERROR! ERROR! ERROR! ERROR! ERROR! ERROR!");
try
{
Thread.sleep(3000);
}
catch (InterruptedException e) {
e.printStackTrace() ;}
System.out.println("We look forward to aiding you with your financial needs! - The IB Team");