没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class MySort {
private static final int COL = 3;
private static final int ROW = 256;
private static final int[][] s = new int[ROW][COL];
public static void main(String[] args) throws IOException{
String path = "D://test//mytest.txt";
File file = new File(path);
if(!file.exists()){
file.createNewFile();
}
FileWriter fw = new FileWriter(path);
BufferedWriter bw = new BufferedWriter(fw);
for(int i=0;i<ROW;i++){
for(int j=0;j<COL;j++){
s[i][j] = (int)((Math.random())*10 + 1);
}
}
for(int i=0; i<ROW; i++){
for(int j=0; j<COL; j++){
bw.write(s[i][j] + " ");
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class MySort {
private static final int COL = 3;
private static final int ROW = 256;
private static final int[][] s = new int[ROW][COL];
public static void main(String[] args) throws IOException{
String path = "D://test//mytest.txt";
File file = new File(path);
if(!file.exists()){
file.createNewFile();
}
FileWriter fw = new FileWriter(path);
BufferedWriter bw = new BufferedWriter(fw);
for(int i=0;i<ROW;i++){
for(int j=0;j<COL;j++){
s[i][j] = (int)((Math.random())*10 + 1);
}
}
for(int i=0; i<ROW; i++){
for(int j=0; j<COL; j++){
bw.write(s[i][j] + " ");
资源评论
seu_monashwxd
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功