-
javaSE冒泡排序控制台流程详解
public class NumsI{
public static void main (String [] arge){
//定义一个
int 的数具类型数组 nums,并赋予初始值;
int[] nums = new int[]{12,24,34,14,45,17,65,51,25};
//提示排序方式并用迭代输出数组初始状态;
System.out.println("冒泡排序演示");
System.out.print("初始数据 ");
for (int num :nums){
System.out.print(num + " ");
}
System.out.println();
//设置一个循环,用来记录比较轮数;
for (int i = 0; i <
nums.length-1; i++ ){
//设置一个循环,记录该轮比较中的比
较次数;
for(int j =0;j < nums.length-1-i; j++){
//用 nums[] 数组中前面的值与它后面的值比较
,如果后面的值比它大就执行下面代码块;
- 2023-03-29 13:15:04下载
- 积分:1
-
猴子分桃
/*题目:海滩上有一堆桃子,五只猴子来分。第一只猴子把这堆桃子凭据分为五份,多了一个,
这只猴子把多的一个扔入海中,拿走了一份。第二只猴子把剩下的桃子又平均分成五份,又
多了一个,它同样把多的一个扔入海中,拿走了一份,第三、第四、第五只猴子都是这样做
的,问海滩上原来最少有多少个桃子?
*/
public class Monkey {
public static void main(String[] args) {
int sum=0;
for(int i=0;i
- 2022-03-02 23:28:19下载
- 积分:1
-
student managment system
这是一个在sql server中创建的数据库,是一个基于web的项目管理源,需要向您提供我从您的站点创建的系统项目。
- 2023-07-24 13:15:04下载
- 积分:1
-
相当好的网站HTML5的前台模板源码下载
相当好的网站HTML5的前台模板源码下载
- 2014-11-19下载
- 积分:1
-
gzfw
实现药品种类查询,药品价格查询,药品相关资讯展示的app(Achieve new, add, query layer, and map online editing, including printing and other controls)
- 2017-07-13 19:41:56下载
- 积分:1
-
短文本聚类
使用各类算法进行短文本聚类,包括K-mean、DBSCAN等,可以对微博、短信等文本进行聚类,然后进行数据挖掘
- 2022-10-13 12:50:06下载
- 积分:1
-
AndroidViewAnimations-master
andriod动画资源 提供各种android动画的的制作方法,有很好的学习价值。(Android provides all sorts of android animation animation resources producing method, have good learning value.)
- 2014-08-30 16:48:53下载
- 积分:1
-
android陀螺仪应用
用于android手机中陀螺仪姿态角检测,包含了KF算法。
可以用于各种手机姿态、倾角检测。
// Integrate around this axis with the angular speed by the timestep
// in order to get a delta rotation from this sample over the timestep
// We will convert this axis-angle representation of the delta rotation
// into a quaternion before turning it into the rotation matrix.
- 2022-03-04 23:31:56下载
- 积分:1
-
TestForFloatingWindow-master
说明: android 8.0之前的悬浮窗口Demo代码(android before 8.0 float window Demo source code)
- 2019-06-15 21:55:45下载
- 积分:1
-
android 手势密码解锁 九宫格解锁实现源码下载
九宫格解锁实现,附完整源码
- 2013-07-21下载
- 积分:1