- akerblad.tar A Java port of LDC s Champollion sentence aligner (http://champollion.sourceforge.net). Intended audience is Natural Language researchers wishing to sentence
- music 修正的算法
- gammu for sms gateway to delphi
- Solutions-Manual matlab 有限元一书的课后习题的答案和程序输入过程
- xy_company_3.0 遗传算法求最大值最小值问题的一些实例及其matlab实现遗传算法求最大值最小值问题的一些实例及其matlab实现
- virus100 仅感染.c的文件
文件名称:Matrix
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.31kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
个人原创代码:编写Java Application程序的方法,声明一个矩阵类Matrix,成员变量是一个二维数组,设数组元素类型为int,请设计方法:
(1)构造方法:
Matrix() //构造一个10X10个元素的矩阵,没有数据
Matrix(int n,int m) //构造一个nXm个元素的矩阵,数据由随机数产生
Matrix(int table[][]) //以一个整型的二维数组构造一个矩阵
要求使用 this
(2) 实例方法:
public void output() //输出Matrix类中数组的元素值
public void transpose() //输出一个矩阵的转置矩阵
2.随机数求法:
Math.random( )返回0-1的小数,由上题中的Matrix类派生出正方形Square类,在构造方法中调用父类的构造方法(使用super)。-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).
(1)构造方法:
Matrix() //构造一个10X10个元素的矩阵,没有数据
Matrix(int n,int m) //构造一个nXm个元素的矩阵,数据由随机数产生
Matrix(int table[][]) //以一个整型的二维数组构造一个矩阵
要求使用 this
(2) 实例方法:
public void output() //输出Matrix类中数组的元素值
public void transpose() //输出一个矩阵的转置矩阵
2.随机数求法:
Math.random( )返回0-1的小数,由上题中的Matrix类派生出正方形Square类,在构造方法中调用父类的构造方法(使用super)。-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).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Matrix.java
本Java程序设计详细要求.txt
本Java程序设计详细要求.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
