![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java基础
哈赛给
这个作者很懒,什么都没留下…
展开
-
NIO入门使用笔记
使用目标:客户端与服务端建立连接,客户端发送到服务端,服务端能够正常获取到数据。public static void main(String[] args) throws IOException { ServerSocketChannel serverSocketChannel = ServerSocketChannel.open(); serverSocketChannel.socket().bind(new InetSocketAddress(9999));.原创 2021-03-23 17:44:11 · 157 阅读 · 0 评论 -
获取字符串中指定字符串出现的所有位置
String path = "localhost:8080"; String details = "<p><img src="/upload/5a52da4dN0a6d04b9.jpg!q701.jpg""></p>" StringBuilder sb = new StringBuilde原创 2018-09-18 14:36:40 · 8851 阅读 · 0 评论