public void fun() { String name="who"; String passwd="666"; log.info("name:{},passwd,{}",name,passwd); } ...
分类:
其他好文 时间:
2021-03-17 15:04:20
阅读次数:
0
实现类: public class LinkedList { /* * 回文链表 * 检查链表是否回文 */ public static void main(String[] args) { Linknode node = new Linknode(1); node.next = new Linkn ...
分类:
其他好文 时间:
2021-03-17 15:02:32
阅读次数:
0
两个: new String()和abc new出来的对象都存放在堆中 String str = "abc"是创建了一个对象 String str1 = "abc"; String str2 = "ab" + "c"; str1==str2是true 因为String str2 = "ab" + " ...
分类:
其他好文 时间:
2021-03-17 14:59:15
阅读次数:
0
一、 列表和元组基础 列表和元组都是一个可以放置任意数据类型的有序集合。对于python的列表和元组来说,集合的数据类型不像其他编程语言一样必须要求一致。 l = [1, 2, 'hello', 'world'] # 列表中同时含有int和string类型的元素 l [1, 2, 'hello', ...
分类:
其他好文 时间:
2021-03-17 14:58:14
阅读次数:
0
client 版本0.1 public class RpcParam implements Serializable { private String name; } 版本0.2 public class RpcParam implements Serializable { private Stri ...
分类:
其他好文 时间:
2021-03-17 14:55:50
阅读次数:
0
线程安全的可变字符序列,一个类似于string的字符串缓冲区,但不能修改。 stringbuffer和string的区别。 string是一个不可变的字符序列 stringbuffer是一个可变的字符序列 ...
分类:
其他好文 时间:
2021-03-17 14:55:17
阅读次数:
0
class Solution { public boolean wordBreak(String s, List<String> wordDict) { return isContain(s, wordDict); } Map<String,Boolean> map = new HashMap<>( ...
分类:
其他好文 时间:
2021-03-17 14:50:42
阅读次数:
0
class Solution { public int characterReplacement(String s, int k) { int left =0,right=0; int maxLength = -1; int result = 0; char[] charNums = new cha ...
分类:
其他好文 时间:
2021-03-17 14:50:06
阅读次数:
0
思路:判断某字符串是否为空,为空的标准是str==null或str.length()==0一.空字符串与null区别1、类型 null表示的是一个对象的值,而并不是一个字符串。例如声明一个对象的引用,String a = null ;""表示的是一个空字符串,也就是说它的长度为0。例如声明一个字符串 ...
分类:
编程语言 时间:
2021-03-17 14:48:23
阅读次数:
0
数据结构和算法概述 算法分析 目的:花费更少的时间和更少的内存 1.1时间复杂度分析 事后分析方法: 程序开始时获取一个时间,结束时又获取一个时间,两者相减即可获得运行时间。 例: public class demo { public static void main(String[] args) ...
分类:
编程语言 时间:
2021-03-17 14:38:42
阅读次数:
0