1、九种基本数据类型的大小以及它们的封装类 java提供的九种基本数据类型:boolean、byte(1)、char(2)、short(2)、int(4)、long(8)、float(4)、double(8)、void 以及它们的封装类:Boolean、Byte、Character、Short、In ...
分类:
编程语言 时间:
2018-05-26 13:26:52
阅读次数:
247
基本包装类 程序界面上用户输入的数据都是以字符串类型进行存储的,要把字符串转成基本数据类型操作 基本包装类就是对8种基本数据类型进行包装:Integer Character 其他的都是首字母大写 1、将字符串转换成基本数据类型 Integer.parseInt(字符串) Double.parseDo ...
分类:
其他好文 时间:
2018-05-26 12:23:28
阅读次数:
137
[抄题]: Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) ...
分类:
其他好文 时间:
2018-05-25 19:23:00
阅读次数:
170
Java 基本类型和对象类型的区别 基本类型: int long byte float double char boolean short 对象类型: Integer Long Byte Float Double Character Boolean Short 包装类: java中有时候运算时两个对 ...
分类:
编程语言 时间:
2018-05-25 19:21:34
阅读次数:
197
报错: 错误原因: 当在浏览器中访问时 URL中带有特殊字符,如花括号冒号时,就会出现这个错误。 例如:http://localhost:8080/index.do?{id:123} 解决方法: 1、去除URL中的特殊字符; 3、使用 Post 方法提交数据 4、更换低版本的Tomcat来规避这种问 ...
分类:
编程语言 时间:
2018-05-25 14:53:10
阅读次数:
448
截取字符串长度。通常情况下,中文以及中文标点符号占2字节,ASIIC编码占1字节,如果规定字符长度不超过8位,可通过以下方法 ...
分类:
其他好文 时间:
2018-05-25 13:35:04
阅读次数:
144
Valid Palindrome II Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2 ...
分类:
其他好文 时间:
2018-05-25 11:13:51
阅读次数:
188
The content of elements must consist of well-formed character data or markup ...
分类:
其他好文 时间:
2018-05-25 11:09:31
阅读次数:
151
D.Distinctive Character 看到样例,第一个反应贪心。先写了个按这一位1和0的数目多少,确定0还是1的东西。感觉不够真,又写了个尽量加到相似的比较小的串上的贪心。在和前边的那个组合一下,换了换顺序。。。好吧就过了13组样例。。。正解如下:考虑如何求出,所有2^k个状态与这n个串的 ...
分类:
其他好文 时间:
2018-05-25 10:55:42
阅读次数:
241
Play a game Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3643 Accepted Submission(s): 2958 Pro ...
分类:
其他好文 时间:
2018-05-25 01:34:42
阅读次数:
156