- 博客(4)
- 收藏
- 关注
原创 Java高并发编程-生产者消费者问题
生产者消费者模型思路一通过实际问题构造一个生产者和消费者问题,用馒头类,放馒头的框,生产馒头的厨师类,和吃馒头的消费者类,其中后两者实现Runnable接口,然后通过创建多个线程来生产馒头和消费馒头;代码实现一public class Main { public static void main(String[] args) { Bucket b = n
2018-02-07 12:32:41 581
原创 PAT-Java-First Contact (30)
First Contact题目阐述 Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a girl B, he would usually no
2018-02-05 16:24:03 373
原创 PAT-Java-Final Grading(25)
Final Grading题目阐述 For a student taking the online course “Data Structures” on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no
2018-02-04 20:16:48 197
原创 PAT-Java-All Roads Lead to Rome (30)
All Roads Lead to Rome题目描述 题目描述 Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the mo
2018-02-03 09:51:59 408
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人