上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 72 下一页

2021年12月28日

JAVA 读取

摘要: Scanner in = new Scanner(System.in); int a = in.nextInt(); System.out.println(a); double b = in.nextDouble(); System.out.println(b); long c = in.nextL 阅读全文

posted @ 2021-12-28 17:31 cltt 阅读(44) 评论(0) 推荐(0) 编辑

Adobe Acrobat 2020 安装教程

摘要: 参考链接:https://www.aisoutu.com/a/90256 下载地址:https://pan.baidu.com/s/1JpjnOEbGRQIk95a87_XyRA 提取码:9999 解压 安装即可 阅读全文

posted @ 2021-12-28 17:02 cltt 阅读(394) 评论(0) 推荐(0) 编辑

复制链表

摘要: 方法1 :先拼接 再拆分 /* // Definition for a Node. class Node { int val; Node next; Node random; public Node(int val) { this.val = val; this.next = null; this. 阅读全文

posted @ 2021-12-28 15:39 cltt 阅读(89) 评论(0) 推荐(0) 编辑

2021年12月27日

Java 对象

摘要: Node x = new Node(5, null); Node y = x; System.out.println(x); System.out.println(y); System.out.println("____________"); System.out.println(System.id 阅读全文

posted @ 2021-12-27 21:23 cltt 阅读(28) 评论(0) 推荐(0) 编辑

2021年12月23日

JAVA数组

摘要: public class Main { public static void main(String[] args) { // char a[][]={{"ff"},{"ee"}}; char c[][] = { { 'a', 'c' }, { 'c', 'd' } }; String[][] li 阅读全文

posted @ 2021-12-23 18:52 cltt 阅读(26) 评论(0) 推荐(0) 编辑

2021年12月22日

树状数组求逆序对

摘要: class Solution { public int reversePairs(int[] nums) { int l = nums.length; int []tmp = new int[l];//l就可以 System.arraycopy(nums,0,tmp,0,l); Arrays.sor 阅读全文

posted @ 2021-12-22 17:06 cltt 阅读(26) 评论(0) 推荐(0) 编辑

2021年12月19日

JAVA 参数传递

摘要: import java.util.Scanner; //值传递 (传递的是值的拷贝,也就是说传递后就互不相关了。) public class Main { void test1(int a) { a = 4; System.out.println("test1 a:" + a); } public 阅读全文

posted @ 2021-12-19 10:38 cltt 阅读(36) 评论(0) 推荐(0) 编辑

2021年12月18日

JAVA 反转链表

摘要: //头插法class Solution { ListNode p1 ; public ListNode reverseList(ListNode head) { ListNode p = head; while(p!=null){ addFirst(p.val); p = p.next; } ret 阅读全文

posted @ 2021-12-18 22:21 cltt 阅读(55) 评论(0) 推荐(0) 编辑

2021年12月17日

JAVA 类相关知识

摘要: 局部变量和成员变量的不同: 1、定义的位置不一样 局部变量:定义在方法内部 成员变量:在方法外部,直接写在类中 2、作用范围不一样 局部变量:只有方法中能使用,除了方法就不能用 成员变量:整个类都可以用 3、默认值不一样 局部变量:无默认值,先赋值在使用 成员变量:如果没有赋值有默认值 4、内存的位 阅读全文

posted @ 2021-12-17 10:30 cltt 阅读(30) 评论(0) 推荐(0) 编辑

2021年12月16日

JAVA 自定义比较器

摘要: 参考链接:https://blog.csdn.net/whing123/article/details/77851737 Comparable 需要类实现Comparable接口,重写compareTo方法 Comparator Comparator接口一般不会被集合元素类所实现,而是单独实现或者匿 阅读全文

posted @ 2021-12-16 16:14 cltt 阅读(161) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 72 下一页

导航