自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 前端-html常用样式

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>C.

2022-01-11 16:44:47 106

原创 简单hashmap实现

package com.example.leetcode.hash; public class HashMap { private int capacity; private Node[] map; public HashMap(int capacity) { this.capacity = capacity; map = new Node[capacity]; } public void put(String key, i.

2021-12-29 11:38:37 112

原创 一致性hash算法实现

不带虚拟节点 package com.example.leetcode.hash; import java.util.SortedMap; import java.util.TreeMap; public class ConsistentHashingWithoutVirtualNode { //待添加入Hash环的服务器列表 private static String[] servers = { "192.168.0.1:8888", "192.16

2021-12-29 11:37:40 59

原创 NIO实现文件上传

NIO上传 NIOClient package com.example.leetcode.file; import java.io.FileInputStream; import java.net.InetSocketAddress; import java.nio.channels.FileChannel; import java.nio.channels.SocketChannel; public class NewIoClient { public static void main.

2021-12-29 11:35:26 141

原创 设计模式-工厂方法模式

接口、类 package com.example.leetcode.design.factory; public interface BaoMa { void run(); } package com.example.leetcode.design.factory; public class BaoMa730 implements BaoMa { @Override public void run() { System.out.println("BaoM

2021-12-29 11:31:22 59

原创 建造者模式

package com.example.leetcode.design.builder; public class Car { public String engine; public String body; public String chassis; public Car(String engine, String body, String chassis) { this.engine = engine; this.body .

2021-12-29 11:23:01 132

原创 适配器模式

package com.example.leetcode.design.adaptor; public interface CloudLogger { void sendServer(String msg); } package com.example.leetcode.design.adaptor; public class CloudLoggerAdapter implements Logger { private CloudLogger cloudLogger; .

2021-12-29 11:19:50 202

原创 回调函数的使用

代码 package com.example.leetcode.callback; //回调函数之接口与方法 public interface CallbackService { void callBackFunc(); } package com.example.leetcode.callback; public class CallbackServiceImpl implements CallbackService { @Override public void c

2021-12-29 11:17:37 144

原创 红包随机算法

package com.example.leetcode.bytes; import java.util.ArrayList; import java.util.List; import java.util.Random; public class RedEnvelope { public static List<Integer> divideRedPackage(Integer totalAmount, Integer totalPeopleNum) { Lis.

2021-12-29 11:13:21 60

原创 AQS实现NonReentrantLock和ReentrantLock

ReentrantLock NonReentrantLock AQS

2021-12-29 11:08:37 339

原创 AIO代码实现

AIO

2021-12-29 11:05:38 73

MSP430x2xx 系列中文用户使用手册

比较全的MSP430中文用户使用手册,把出厂英文手册分篇翻译成中文。

2013-07-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除