Description: The original code of the individual: the preparation method of the Java Application program to declare a matrix class Matrix member variable is a two-dimensional array, set the array element type int, the design method:
(1) constructor:
Matrix ()// construct a 10X10 one element matrix, there is no data
Matrix (int n, int m)// construct a nXm elements of the matrix, the data generated by the random number
Matrix (int table [] [])// an integer of two-dimensional array construct a matrix
To the use of this
(2) an instance method:
public void output ()// output the array element values in the Matrix class
public void transpose ()// output a matrix transpose matrix
(2) random number and method:
Math.random () back to 0-1 decimal, square Square class derived from the Matrix class in the previous question, in the constructor to call the superclass constructor (using super).
To Search:
File list (Check if you may need any files):
Matrix.java
本Java程序设计详细要求.txt