JAVA 实验报告1040501218 钱胜民(5)
发布时间:2021-06-06
发布时间:2021-06-06
}
}
public static void main(String[] args) { }
Print(sort); Sort(sort); Print(sort);
System.out.println(count);
for(int i = 0; i < sort.length; i++) { }
System.out.print('\n');
System.out.print(sort[i]); System.out.print(" ");
运行结果是:
2. 程序如下:
public class shiyan2_ti2 {
public static void Print(int [][] matrix) { }
public static void main(String [] args) {
int [][] matrix = {{1,3,4},
{2,3,4},
int sum = 0;
for(int i = 0; i < matrix.length; i++) { }
System.out.println(sum);
sum += matrix[i][i];
上一篇:申论答题纸