smallNotes
人生啊,不是在debug的路上就是在产生bug的路上~
最终,还是一个人扛下了所有。。。
我吃黄焖鸡
啊哈?哦哦
展开
-
初遇java.lang.OutOfMemoryError: Java heap space
无重复字符串的排列组合。编写一种方法,计算某字符串的所有排列组合,字符串每个字符均不相同。import java.util.ArrayList;import java.util.List;public class Solution1 { public static void main(String[] args) { Solution1 solution1 = ...原创 2020-05-07 22:35:03 · 137 阅读 · 0 评论 -
接口(interface)的二三事
话不多说,直接show the codepublic class T_interface { public static void main(String[] args) { //Interface test1 = new Interface(); new 接口时必须实现其抽象实例方法 Interface test2 = new Interface() {...原创 2020-04-10 22:24:23 · 87 阅读 · 0 评论 -
String.split()需要注意的点
a.split()函数语法:public String[] split(String regex, int limit)参数:regex – 正则表达式分隔符。limit – 分割的份数。注意:. 、 $、 | 和 * 等转义字符,必须得加 \。血的教训:1."example.java".split(".").length=0!2.example.java".spl...原创 2020-04-09 16:40:03 · 91 阅读 · 0 评论