搜索资源列表
magicmatrix
- 用二维数组打印魔方阵:每行每列对角线之和相等,经典算法-Print magic square: a two-dimensional array equal to the diagonal of each row and column, the classical algorithm
javaflkfdqsources
- Java范例开发大全一书光盘源代码 Java范例开发大全随书附带的光盘源码,比较完整的JAVA书籍实例源码,内容方面涉及Java基储运算符、循环语句控制、一维和二维数组、字符串缓存类StringBuffer实例、字节流、文件与目录操作实例、面向对象的设计模式演示、多态、垃圾回收机制、数学Math类、Date类和Calendar类操作等,这本书的例子大多适合Java初级用户阅读,是比较好的学习参考实例。-failed to translate
oop_day05_1112_v1_am
- ava 的二维数组是一维对象数组, 每个对象是一个一维数组-ava two-dimensional array is one-dimensional array of objects, each object is a one-dimensional array
andian
- 找出一个二维数组的鞍点,即列上最小,行上最大的数-Find a two-dimensional array of saddle point, that column' s smallest, the largest number of rows
Test9
- /** * 第9题:写一方法,打印等长的二维数组,要求从1开始的自然数由方阵的最外圈向内螺旋方式地顺序排列。 如: n = 4 则打印: * 1 2 3 4 * 12 13 14 5 * 11 16 15 6 * 10 9 8 7 * @antor ZhangLinmin */-/*** Question 9: Write a method to print a two-dimensional array of equal length, requiri
viviom
- 设计一个名为Location的类,定位二维数组中的最大值及其位置。这个类包括公共的数-Design of a class called Location, location of the maximum two-dimensional array and its location. This class includes a number of public
java
- 有一个5行6列的二维数组,元素值array[i][j]=iˆ 2-(j-i)ˆ 2+10, 其中,0<=i<=4,0<=j<=5,输出该数组,并求出每一行的最大值和每一列的最小值。-A 5 rows 6 columns two-dimensional array element value array [i] [j] = i2-(ji) 2+10, where, 0 < = i < = 4,0 < = j < = 5, the output
LocateLargest
- 提示用户输入一个二维数组,然后显示这个数组中最大元素的位置,返回值为包含两个元素的以为数组 -Prompts the user to enter a two-dimensional array, and then display the location of the largest element of the array, the return value is an array that contains two elements
EnMoney
- 程序中定义一个员工类、一个查看员工薪资的接口和两个实现接口的类。在main()方法中创建二维数组并将数组信息填入数组,定义接口的引用使用多态。接口的引用必须是实现了接口的类的对象;再创建5个员工对象,用数组存储。-Program to define a class of employees, a view employee payroll interface and two classes that implement the interface. Create a two-dimensiona
EMoney
- 程序中定义一个员工类、一个查看员工薪资的接口和两个实现接口的类。在main()方法中创建二维数组并将数组信息填入数组,定义接口的引用使用多态。接口的引用必须是实现了接口的类的对象;再创建5个员工对象,用数组存储,并实现文件操作。-Program to define a class of employees, a view employee payroll interface and two classes that implement the interface. Create a two-di
GATSP
- 遗传算法中的的旅行家算法的代码,实现寻找最短路径的功能,输入在程序内部进行,以二维数组的形式表示-Genetic algorithms traveler algorithm code to achieve Find the shortest path, enter the internal procedures, expressed in the form of a two-dimensional array
7.19
- 测试一个二维数组是否有四个连续的数字具有相同的值,这四个数可以是水平方向的、垂直方向的或者对角线方向-check if there are four consecutive numbers
s4
- (4)编写程序,设计一个学生成绩表,用二维数组Score[i][j],存放10名同学的5门学习成绩,学号和分数均为整数。可以由用户录入成绩;打印每门课的平均成绩;打印总成绩最高的同学的学号-(4) Write a program to design a table student achievement, with a two-dimensional array Score [i] [j], store 10 students five grades, school and scores are
Circle
- 用java编程实现二维数组m*n螺旋数组:程序中可输入行数和列数,并实现数字从1开始顺时针增加,形成一个螺旋,至把二位数组空格填满为止-Java programming with an array of m* n-dimensional helical array: the program can enter the number of rows and columns, and digital increases clockwise starting from 1, to form a spi
snackGame
- Javase的一个小项目,贪吃蛇,比较简单易懂,运用了二维数组还有linkedlist链表的知识- Javase de yīgè xiǎo xiàngmù, tān chī shé, bǐjiào jiǎndān yì dǒng, yùnyòngle èr wéi shùzǔ hái yǒu linkedlist liànbiǎo de zhīshì Javase a small project, Snake, relatively simple to understand and us
transpose
- java代码,二维数组矩阵转置实现,输入原矩阵可自行更改-java code, two-dimensional array matrix transpose achieve, enter the original matrix can make changes
java
- 掌握一维数组和二维数组的定义、初始化方法。用一维数组(例子数组如下 { 7, 4, 3, 9, 0, 6 })实现冒泡排序算法,-The definition of one-dimensional and two-dimensional arrays of arrays, initialization method to master. With a one-dimensional array (array follows the example {7, 4, 3, 9, 0, 6}) to a
java
- 掌握一维数组和二维数组的定义、初始化方法。编写程序实现两个矩阵的相加、相乘-The definition of one-dimensional and two-dimensional arrays of arrays, initialization method to master. Write a program to achieve the sum of two matrices are multiplied.
2
- 可以得出一个二维数组的所有元素的平均值 适合初学者学习-Averages can draw a two-dimensional array of all the elements For beginners to learn
Matrix
- 实现数据按照二维螺旋矩阵的形式形式来输出顺序的序列1,2,3,4,5……。例如把数据1放在二维数组的第一个位置,然后顺时针把二维数组的剩下的位置用2,3,4,5,……等填满。-Data in the form of a matrix to form a two-dimensional helical output sequence order of 1,2,3,4,5 ....... For example, on a two-dimensional array of data a first