
java
Beer Home
这个作者很懒,什么都没留下…
展开
-
数组插入 java
写一个数组插入的方法:public class ArrayOperating { public static void main(String[] args) { ArrayOperating arrayOperating = new ArrayOperating(); int[] array = {1, 2, 4, 5, 5}; int...原创 2019-07-13 18:56:05 · 313 阅读 · 0 评论 -
磁盘 100 %
记一次磁盘 100 % 的问题解决。(ps: 可以直接参考:https://scoutapm.com/blog/understanding-disk-inodes)发现tab 自动补全不好用使用 tab 去自动补全的时候,出现下面的提示:cannot create temp file for here-document: No space left on device重点是: ...原创 2019-08-16 22:27:12 · 2054 阅读 · 0 评论 -
ValidParentheses leetcode
原文:https://www.hexianwei.com/2019/04/10/20-ValidParentheses/https://leetcode.com/problems/valid-parentheses/题目Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determ...原创 2019-04-11 00:24:58 · 152 阅读 · 0 评论 -
两个线程交替打印 ABABABABAB
public class WaitNotifyThreadTest { public static Boolean flag = true; public static int i = 0; public static Object lock = new Object(); public static void main(String[] args) { ...原创 2019-09-27 12:11:09 · 4154 阅读 · 2 评论