62,612
社区成员
发帖
与我相关
我的任务
分享
class ForTest
{
public static void main(String[] args) throws FileNotFoundException
{
PrintStream ps = new PrintStream(new FileOutputStream("log.txt"));
System.setOut(ps);
int i=1;
for(System.out.println("a");i<3;System.out.println("b"));
{
System.out.println("c");
i++;
}
}
}