摘要: import java.util.Scanner;class FindGold{ private static int m,n,k; private static boolean[][] visited; public static void main(String[] args) { Scanne 阅读全文
posted @ 2024-04-19 16:54 MikeLi 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;import java.lang.Math;import java.util.Arrays;public class HJ009{ public static void main(String[] args) { int aim,digit,pot; 阅读全文
posted @ 2024-04-05 23:33 MikeLi 阅读(13) 评论(0) 推荐(0) 编辑
摘要: id 阅读全文
posted @ 2023-01-05 08:06 MikeLi 阅读(6) 评论(0) 推荐(0) 编辑
摘要: package com.challenger; import com.challenger.Util; public class InsertSort { public static void main(String[] args) { int i,j,exNum,k; int[] arr={6,3 阅读全文
posted @ 2022-11-20 11:15 MikeLi 阅读(26) 评论(0) 推荐(0) 编辑
摘要: package com.challenger;import com.challenger.Util;public class SelectSortDoWhile{ public static void main(String[] args) { //define array int[] arr={5 阅读全文
posted @ 2022-11-18 00:56 MikeLi 阅读(16) 评论(0) 推荐(0) 编辑
摘要: public class SelectSortWhile{ public static void main(String[] args) { //define array int[] arr={5,8,2,3,7,4,10,6,9,1}; //define i as array loop index 阅读全文
posted @ 2022-11-18 00:54 MikeLi 阅读(18) 评论(0) 推荐(0) 编辑
摘要: package com.challenger;import com.challenger.Util;public class SelectSort{ public static void main(String[] args) { int[] arr={5,8,6,3,1,4,10,9,2,7}; 阅读全文
posted @ 2022-11-16 07:24 MikeLi 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1.package must correspond to file path package is com.challenger path must be com/challenger/ 2.javac use -d to output classes into file path automati 阅读全文
posted @ 2022-11-16 00:10 MikeLi 阅读(16) 评论(0) 推荐(0) 编辑
摘要: String is fixed ,so object when created ,it cannot be modified any more. it's ineffective. in-effulent; when you use "+" to combine two String, via an 阅读全文
posted @ 2022-11-15 23:54 MikeLi 阅读(10) 评论(0) 推荐(0) 编辑
摘要: mikeli@dell-pc:~/code/algo_java/algs4_source_code$ jar xf algs4.jar Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] fil 阅读全文
posted @ 2022-11-06 19:13 MikeLi 阅读(18) 评论(0) 推荐(0) 编辑