摘要:
static byte[] copyOf(byte[] original, int newLength) --> 复制原数组,得到一个新的数组!复制指定的数组,用零截取或填充(如有必要),以便复制具有指定的长度。 参数:byte[] original --> 复制的原数组! int newLengt 阅读全文
摘要:
public class InsertSort { public static void main(String[] args) { int[] arr = {58, 5, 10, 2, 47}; for (int i = 1; i < arr.length; i++) { int num = ar 阅读全文
摘要:
import java.util.Arrays;/** * @Author:Zxb * @Version:1.0 * @Date:2022/11/14-16:03 * @Since:jdk1.8 * @Description: */ public class SelectSort { public 阅读全文
摘要:
import java.util.Arrays;/** * @Author:Zxb * @Version:1.0 * @Date:2022/11/14-15:45 * @Since:jdk1.8 * @Description: */ public class BubbleSort { public 阅读全文
摘要:
import java.util.Arrays; /** * @Author:Zxb * @Version:1.0 * @Date:2022/11/14-14:56 * @Since:jdk1.8 * @Description: */ public class Demo2 { public stat 阅读全文
摘要:
public class Demo1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); /*System.out.println("输入学生人数:"); int n =input.ne 阅读全文
摘要:
public class Demo1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("学生人数:"); int n = scanner.n 阅读全文
摘要:
public static void main(String[] args) { //删除数组里面的所有a //数组元素都是连贯的 //数组空间是不变的 String[] strArray ={"a","b","a","a","d"}; //null b null null d >b d null 阅读全文
摘要:
public static void main(String[] args) { Scanner input = new Scanner(System.in); String trueP = "123"; int i=3; do{ i--; System.out.println("请输入密码:"); 阅读全文