Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
这应该做到:
import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; public class tmp { public static void main(String[] args) { try { File file = new File("multi.txt"); // FileWriter Writer = new FileWriter("multi.txt"); BufferedWriter Writer = new BufferedWriter(new FileWriter(file)); int n = 10; for(int o = 1; o <= n; o++) { for(int s = 1; s <= n; s++) { Writer.write(o*s+"\t"); } Writer.write("\n"); } Writer.close(); } catch (Exception e) { System.out.println("exception thrown"); } } }
This should do it:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
这应该做到:
This should do it: