私は大学の課題を抱えており、ユーザーから名前、ミドルネーム、姓、および年齢を取得し、イニシャルなどを使用して銀行 ID を提供する必要があります。しかし、それは私が尋ねるためにここにいるものではありません。
私はそれを少し楽しんで、「イマジナリーバンク」が誤って詐欺だとユーザーに伝えたかったのです! 次に、エラーがポップアップ表示され、その偶発的なテキスト行が削除され、通常の「お手伝いできることを楽しみにしています!」に置き換えられます。ライン。方法を知る必要があるのは、"At Imaginary Bank, we" Thanks! で始まるテキスト行を削除することだけです。
        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");