print和println 换行规则不一样println是输出后直接换行。print 里你得加\n才能。你全用的println,全是输出完就换行
你可能没有编译而直接运行,运行的是上一次的。先编译,再运行。