摘要:
数组高级操作 1.冒泡排序 /** * 冒泡排序 * @param arr */ public static void bubbleSort(int[] arr){ int a = 0; for (int i = 0; i < arr.length-1; i++) { for (int i1 = 0 阅读全文
摘要:
内部类 1.内部类的基本使用 package com.lu.day03; public class Student { private int b= 12; public class A{ private int b = 11; public void show(){ int b = 10; Sys 阅读全文
摘要:
package com.homework; public class Text { public static void main(String[] args) { //原价、月份、仓位仓位由0,1表示 buyAPlaneTicket(356,7,0); } public static double 阅读全文
摘要:
package com.lu; public class Text7 { public static void main(String[] args) { int[] arr={1,9,8,3}; for (int i : encrypt(arr)) { System.out.println(i); 阅读全文
摘要:
package com.lu; import java.util.Scanner; public class Text5 {//找素数 public static void main(String[] args) { Scanner input = new Scanner(System.in); S 阅读全文