码迷,mamicode.com
首页 > 其他好文 > 详细

答案(1)

时间:2019-10-29 19:49:43      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:code   i++   change   open   src   ret   c99   col   lap   

1)select Fclass, max(Fscore) from table group by Fclass, Fid;

2)

技术图片
 1 public class Singleton{
 2   /* 懒汉式 */
 3   private static Singleton instance = new Singleton();
 4   
 5   private Singleton(){}
 6   
 7   public static Singleton getInstance(){
 8     return instance;
 9   }
10 }
11 
12 public class Singleton{
13   /* 饿汉式 */
14   private static Singleton instance = null;
15   
16   private Singleton(){}
17   
18   public static Singleton getInstance(){
19     if(instance == null)
20         instance = new Singleton();
21     return instance;
22   }
23 }
Code

 3)

技术图片
 1 public void BubbleSort(int[] a, int n){
 2   boolean change = true;
 3   for(int i = 1; i < n && change; i++){
 4     change = false;
 5     for(int j = 0; j < n - i; j++){
 6       if(a[j] > a[j + 1]){
 7         int t = a[j];
 8         a[j] = a[j + 1];
 9         a[j + 1] = t;
10         change = true;
11       }
12     }
13   }
14 }
Code

 

答案(1)

标签:code   i++   change   open   src   ret   c99   col   lap   

原文地址:https://www.cnblogs.com/sketeton/p/11760816.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!