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
如果比较两个数值相等的Integer类型的整数,我们可能会发现,用“==”比较(首先你必须明确“==”比较的是地址),有的时候返回true,而有的时候,返回false。比如: Integer i = 128; Integer j = 128; System.out.println(i == j);/ ...
分类:
编程语言 时间:
2021-03-17 14:52:23
阅读次数:
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
call和apply的应用场景: 判断数据类型: Object.prototype.toString用来判断类型再合适不过,借用它我们几乎可以判断所有类型的数据: function isType(data, type) { const typeObj = { '[object String]': ' ...
分类:
移动开发 时间:
2021-03-17 14:28:08
阅读次数:
0
Delphi XE 仅仅是学习记录 unit 开始 unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; typ ...
我们的第一个整型变量 Example program > e_c03_p1.ada -- Chapter 3 - Program 1 with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; proced ...
分类:
其他好文 时间:
2021-03-17 14:07:15
阅读次数:
0