摘要:
@Data public class xxxQuery{ //字符串转Date @DateTimeFormat(pattern = "<dateformate>") private Date date; } @Data public class xxxVO{ //Date转字符串 @JsonForm 阅读全文
摘要:
gb2312字符集,字符码表分成94个区,每个区里有94个位,每位对应一个字符。 常用汉字范围,区:16-55,位:1-94 gb2312由两个字节组成一个字符,区对应高字节,位对应低字节,字节的值等于区/位号+0xA0 例如:啊,区16,位01 byte[] bytes = new byte[2] 阅读全文
摘要:
使用迭代器遍历ArrayList并尝试删除数据: public class CollectionApp { public static void main(String[] args) { List<Integer> list = new ArrayList<>(); list.add(0); li 阅读全文
摘要:
输出程序运行后的打印结果: class Father{ static { System.out.print("1"); } Father(){ System.out.print("3"); } } class Son extends Father{ static { System.out.print 阅读全文
摘要:
遇到的一道面试笔试题,输出程序运行后的打印结果: class ReturnAndFinally{ static String fun(){ try { int v = 1/0; }catch (Exception ex){ return "ERROR"; }finally { return "OK" 阅读全文
摘要:
Thread.join中使用Object.wait实现: //java.lang.Thread public final synchronized void join(long millis) throws InterruptedException { long base = System.curr 阅读全文
摘要:
我一直以为SpringCloud是多么多么神奇的东西,Cloud,让我想起来云计算,“云”,感觉,好神奇,好复杂, 这些天先看了看Spring,后来看了看Eureka,最后发现SpringCloud的五大神兽,都是分布式,还是原来的那个圈圈,我以为是银河系一般的神奇,这家伙给我吓的,原来还在地球上。 阅读全文
摘要:
1 #include <stdio.h> 2 #include "stdlib.h" 3 4 #define LIST_INIT_SIZE 100 5 #define LISTINCREMENT 10 6 7 typedef int ElemType; 8 9 typedef struct 10 { 阅读全文