摘要:
public class StringTest { public static void main(String[] args) { String s1 = new String("abc");//构造器实例化,声明在堆 String s2 = new String("abc"); String s 阅读全文
posted @ 2022-11-11 12:29
exact1314
阅读(20)
评论(0)
推荐(0)
摘要:
public class Singleton1 {//饿汉式 private Singleton1(){}; static Singleton1 singleton1 = new Singleton1(); public static Singleton1 getSingleton1(){ retu 阅读全文
posted @ 2022-11-11 09:29
exact1314
阅读(11)
评论(0)
推荐(0)
摘要:
public int[] sortMaopao(int[] arry){ for (int i = 0; i <arry.length ; i++) { for (int j = 0; j < arry.length-1-i; j++) { if (arry[j]>arry[j+1]) {//从小到 阅读全文
posted @ 2022-11-11 08:57
exact1314
阅读(8)
评论(0)
推荐(0)

浙公网安备 33010602011771号