静态应用举例2
来源:互联网 发布:c语言中static的用法 编辑:程序博客网 时间:2024/06/05 20:52
package java151217;
public class ArrayTooDemo {
public static void main(String[] args) {
int[] arr = { 3, 1, 87, -1, 23, 4, 6, 789, 2 };
/*
* ArrayTools arrayTools = new ArrayTools();
*
* // The static method getMax(int[]) from the type ArrayTools should be
* // accessed in a static way int max = arrayTools.getMax(arr);
*
* System.out.println(max);
*
* int min = ArrayTools.getMin(arr); System.out.println(min);
*
*/
// arrayTools.printArray(arr);
ArrayTools.printArray(arr);
// arrayTools.selectSort(arr);
ArrayTools.selectSort(arr);
// arrayTools.printArray(arr);
ArrayTools.printArray(arr);
int max = ArrayTools.getMax(arr);
System.out.println(max);
int min = ArrayTools.getMin(arr);
System.out.println(min);
}
}
public class ArrayTooDemo {
public static void main(String[] args) {
int[] arr = { 3, 1, 87, -1, 23, 4, 6, 789, 2 };
/*
* ArrayTools arrayTools = new ArrayTools();
*
* // The static method getMax(int[]) from the type ArrayTools should be
* // accessed in a static way int max = arrayTools.getMax(arr);
*
* System.out.println(max);
*
* int min = ArrayTools.getMin(arr); System.out.println(min);
*
*/
// arrayTools.printArray(arr);
ArrayTools.printArray(arr);
// arrayTools.selectSort(arr);
ArrayTools.selectSort(arr);
// arrayTools.printArray(arr);
ArrayTools.printArray(arr);
int max = ArrayTools.getMax(arr);
System.out.println(max);
int min = ArrayTools.getMin(arr);
System.out.println(min);
}
}
0 0
- 静态应用举例2
- 静态应用举例
- LIBEVENT应用举例2
- 反射应用举例2
- android Spinner(下拉菜单)的应用举例1---静态实现
- RewriteCond和13个mod_rewrite应用举例Apache伪静态
- RewriteCond和13个mod_rewrite应用举例Apache伪静态
- 多态应用举例2
- 设计模式应用举例(2)
- 静态数据成员和静态成员函数在类中的应用举例
- 静态变量举例
- RewriteCond和13个mod_rewrite应用举例Apache伪静态之htaccess编写
- RewriteCond和13个mod_rewrite应用举例Apache伪静态之htaccess编写
- xpath应用举例
- jasperReport应用举例
- 变长参数应用举例
- PIX 防火墙应用举例
- 串操作应用举例
- centos7下使用yum安装mysql
- 第十五周 用哈希法组织关键字
- SDUT 2254 字母螺旋方阵(递归)
- 静态应用举例
- 在Objective-c里面使用property教程
- 静态应用举例2
- Android微信登陆
- C++位操作
- hdu 2059 龟兔赛跑
- 取自己上一层目录路径。
- 第 20 章 多任务和多线程
- java中的继承
- 2016年
- 151218final关键字的使用