51CTO博客开发
创建快捷方式代码:public static final String READ_SETTINGS_PERMISSION = "com.android.launcher.permission.READ_SETTINGS"; public static final String INSTALL_SHORTCUT_PERMISSION = "com.android.launcher.action.IN
Java实现KMP算法:public class StringUtils { /** 获取字符串s的next[]数组 */ public static int[] getNextSeq(String s) { int size = s.length(); int i = 0; int j = -1; int
Java几种排序算法:package sort; public class Sorter { /** * 冒泡排序 * * @param a * 待排序数组 * @return 排序后的数组 */ public static int[] bubbleSort(int[] a) { System.out.println("冒泡排序:"); int in = 0; int out
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号