Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我使用它时,它只会打印出前两个变量。
这是我的代码: out.printf("%9d %s%n", jobs.new, jobs.old, jobs.all, jobs.welcome, allnames);
out.printf("%9d %s%n", jobs.new, jobs.old, jobs.all, jobs.welcome, allnames);
您需要所有变量的占位符。 out.printf("%9d %9d %9d %9d %s%n", jobs.new, jobs.old, jobs.all, jobs.welcome, allnames);
out.printf("%9d %9d %9d %9d %s%n", jobs.new, jobs.old, jobs.all, jobs.welcome, allnames);