StringBuffer的append讲义
摘要:先贴源码 public synchronized StringBuffer append(String str) { toStringCache = null; super.append(str); return this; } 进入AbstractStringBuilder的append,源码如下
阅读全文
posted @
2023-02-06 10:49
程序员丁先生
阅读(34)
推荐(0) 编辑
打印内存地址
摘要:Integer.toHexString(System.identityHashCode(a))
阅读全文
posted @
2023-02-03 16:43
程序员丁先生
阅读(15)
推荐(0) 编辑
springboot+webSocket
摘要:1、新建WebSocketConfig配置类 package com.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configura
阅读全文
posted @
2023-02-01 16:03
程序员丁先生
阅读(178)
推荐(0) 编辑