sunhang
sunhang
全部文章
Java
English(1)
JEE笔记(1)
Python爬虫(1)
设计模式(1)
归档
标签
去牛客网
登录
/
注册
we do not sow
Be together, not the same.
全部文章
/ Java
(共5篇)
JavaConcurrencycookbook Notes
Java Concurrency cookbook reading notes [TOC] 一. Thread management Target creating,running,and setting the characteristics of a thread Interrupting a...
2019-07-30
0
519
PriorityQueue(java)
/** * use maximum-top heap to implement priority queue * define a MAX_SIZE_OF_PRIORITY_QUEUE to limit the max length of priority queue * use a inte...
2019-03-21
0
588
N皇后问题(Java版)
/** * n queens problem * * */ public class EightQueen { private int QUEEN_COUNT = 0;//represent the queen count private int[][] queenCount;...
2019-03-21
0
876
图片转换为字符图
普通图片转换为ASCII码灰度图片 生在一个表情包横行的年代,没有一打表情包撑场面都不好意思玩社交软件。作为一个集万千diao si气质于一身的程序猿,表情包自然也要玩出玩出花样。下面先看看结果吧。(原图网上一大堆) 153803704539...
2018-09-27
0
571
线程池
Java多线程 线程的同步是Java多线程编程的重点和难点,往往让人搞不清楚什么是竞争资源、什么时候需要考虑同步,怎么同步等等问题,当然,这些问题没有很明确的答案,但有些原则问题需要考虑,是否有竞争资源被同时改动的问题?对于同步,在具体的Java代码中需要完成以下两个操作:把竞争访问的资源标识为p...
2018-06-29
0
486