我有这个代码:
System.err.print("number of terms = ");
System.out.println(allTerms.size());
System.err.print("number of documents = ");
System.out.print("number of documents = ");
我认为结果应该是这样的:
number of terms = 10
number of documents =1000
但结果是
10
1000
number of terms = number of documents =
为什么,以及如何解决?