问题描述
我目前正在使用 J Creator IDE 编写我的代码,在代码的某个部分之后我需要在新部分出现之前刷新它,这是我的代码的一部分:
System.out.print("Enter Username: ");
UserN = STRINGian.nextLine();
System.out.print("Enter Password: ");
PassW = STRINGian.nextLine();
if(UserN.equals(user) && PassW.equals(pass))
{
System.out.print("\033[H\033[2J");
System.out.flush();
System.out.println("TODAY'S MEMU\n");
System.out.print("\nHow Many Items You Would Like To Buy?: ");
item = INTian.nextInt();
}
由于某种原因,它在输入用户名和密码后没有刷新。
它打印 [H[2JP 并继续今天的 MEMU。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)