能力说明:
精通JVM运行机制,包括类生命、内存模型、垃圾回收及JVM常见参数;能够熟练使用Runnable接口创建线程和使用ExecutorService并发执行任务、识别潜在的死锁线程问题;能够使用Synchronized关键字和atomic包控制线程的执行顺序,使用并行Fork/Join框架;能过开发使用原始版本函数式接口的代码。
暂时未有相关云产品技术能力~
GitHub: https://github.com/chenhaoxiang
Problem Description 挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然后滴二滴,停一下;再滴三滴,停一下…,现在有一个问题:这瓶盐水一共有VUL毫升,每一滴是D毫升,每一滴的速度是一秒(假设最后一滴不到D毫升,则花费的时间也算一秒),停一下的时间也是一...
Problem Description 大家提到LTC都佩服的不行,不过,如果竞赛只有这一个题目,我敢保证你和他绝对在一个水平线上! 你的任务是: 计算方程x^2+y^2+z^2= num的一个正整数解。
Problem Description 完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身,则称这个数是完数,比如6,28都是完数:6=1+2+3;28=1+2+4+7+14。
Problem Description Tomorrow is contest day, Are you all ready? We have been training for 45 days, and all guys must be tired.
本系列前面博客的链接: Java-单机版的书店管理系统(练习设计模块和思想_系列 四(2) ): http://blog.csdn.net/qq_26525215/article/details/51117135 Java-单机版的书店管理系统(练习设计模块和思想_系列 四(1) ): http://blog.
Problem Description Goldbach’s Conjecture: For any even number n greater than or equal to 4, there exists at least one pair of prime numbers p1 and p2 such that n = p1 + p2.
Problem Description Give a number n, find the minimum x(x>0) that satisfies 2^x mod n = 1.
Problem Description A weird clock marked from 0 to 59 has only a minute hand. It won’t move until a special coin is thrown into its box.
Java-单机版的书店管理系统(练习设计模块和思想_系列 四(1) ): http://blog.csdn.net/qq_26525215/article/details/51116429 Java-单机版的书店管理系统(练习设计模块和思想_系列 三 ): http://blog.
Java-单机版的书店管理系统(练习设计模块和思想_系列 三 ): http://blog.csdn.net/qq_26525215/article/details/51099202 Java-单机版的书店管理系统(练习设计模块和思想_系列 二 ): http://blog.
Problem Description Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,… as shown in the figure.
Problem Description Given a positive integer n, find the positions of all 1’s in its binary representation.
Problem Description Given a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.
Problem Description The Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator.
Java-单机版的书店管理系统(练习设计模块和思想_系列 二 ): http://blog.csdn.net/qq_26525215/article/details/51089734 Java-单机版的书店管理系统(练习设计模块和思想_系列 一 ): http://blog.csdn.net/qq_26525215/article/details/51073546 介绍 今天对系列二的一个添加用户的输入小bug进行了解决, 增加了用户模块的,删除用户,和修改用户模块。
Problem Description For hundreds of years Fermat’s Last Theorem, which stated simply that for n > 2 there exist no integers a, b, c > 1 su...
Problem Description A single playing card can be placed on a table, carefully, so that the short edges of the card are parallel to the tab...
Problem Description Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height.
Problem Description From the article Number Theory in the 1994 Microsoft Encarta: “If a, b, c are integers such that a = bc, a is called a...
Problem Description As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 uniq...
Problem Description A snail is at the bottom of a 6-foot well and wants to climb to the top.
Problem Description 一个正整数,如果从左向右读(称之为正序数)和从右向左读(称之为倒序数)是一样的,这样的数就叫回文数。任取一个正整数,如果不是回文数,将该数与他的倒序数相加,若其和不是回文数,则重复上述步骤,一直到获得回文数为止。
Java-单机版的书店管理系统(练习设计模块和思想_系列 一 ): http://blog.csdn.net/qq_26525215/article/details/51073546 介绍 小提示:上面一点有一个目录,可以快速定位到自己需要看的类。
Problem Description 数论中有许多猜想尚未解决,其中有一个被称为“角谷猜想”的问题,该问题在五、六十年代的美国多个著名高校中曾风行一时,这个问题是这样描述的:任何一个大于一的自然数,如果是奇数,则乘以三再加一;如果是偶数,则除以二;得出的结果继续按照前面的规则进行运算,最后必定得到一。
Problem Description Welcome to 2006’4 computer college programming contest! Specially, I give my best regards to all freshmen! You are th...
Problem Description 今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑 每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的 考生,并将他们的成绩按降序打印。
书店管理系统: 项目练习目标 : 1、Java应用程序基本分析 2、培养面向对象编程的基本思想 3、Java基本设计模式综合应用 4、掌握分层和接口的基本设计 5、构建合理的Java应用程序包结构 6、综合应用JSE所学习的知识 7、在应用中合理使用集合框架 8、在应用中综合使用swing的常用组件 9、基本的表现层的实现机制 10、IO流和文件的基本操作 11、培养良好的Java编程习惯 12、培养调试Java程序的能力,培养改错的能力 项目功能需求 : 1、能进行操作用户的注册,修改基本信息,删除和查询。
写了一个app小软件,重点不在于软件,软件bug挺多,也没去修改。 这个小软件只是为了更好的说明和了解设计模块而做的。 Java 程序设计–包结构 Java程序设计的系统体系结构很大一部分都体现在包结构上 大家看看我的这个小软件的分层: 结构还是挺清楚的。
场景和问题 在不对原有对象类进行修改的基础上,如何给一个或多个已有的类对象提供增强额外的功能? 引例 写一个MyBufferedReader类,使它能够对字符流(如FileReader、InputStreamReader和PipedReader等)进行功能增强: (1) 提供带缓冲的myRead()方法,对原有的read()方法进行增速; (2)提供一个能够每次读取一行字符的myReadLine()方法。
场景和问题 在Java开发时,需要来回交换大量的数据,比如要为方法传入参数,也要获取方法的返回值,该如何能更好的进行数据的交互? 基本的编写步骤 ◎第1步:写一个类,实现可序列化(如果以后数据是往数据库里存的,那么可以不序列化,节省资源) ◎第2步:私有化所有属性,...
场景和问题 Java程序开发讲究面向接口编程,隐藏具体的实现类,可是如何得到接口呢? 工厂类的命名规范:***Factory 单例工厂方法的命名规范:getInstance() 工厂的本质是“选择实现” 工厂、接口和实现类之间的技术边界:工厂只负责选择实现,实现类才做真正的实现,而接口是限定到底实现什么东西和返回什么东西,三者之间分工明确、各负其责。
Problem Description 每学期的期末,大家都会忙于计算自己的平均成绩,这个成绩对于评奖学金是直接有关的。国外大学都是计算GPA(grade point average) 又称GPR(grade point ratio),即成绩点数与学分的加权平均值来代表一个学生的成绩的。
Problem Description Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals...
Problem Description Given an positive integer A (1
Problem Description Superbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunct...
设计模式1——单例变形(多例) 缓存在单例中的使用 缓存在编程中使用很频繁,有着非常重要的作用,它能够帮助程序实现以空间换取时间,通常被设计成整个应用程序所共享的一个空间,现要求实现一个用缓存存放单例对象的类。
设计模式学习概述: 为什么要学习设计模式 1、设计模式都是一些相对优秀的解决方案,很多问题都是典型的、有代表性的问题,学习设计模式,我们就不用自己从头来解决这些问题,相当于在巨人的肩膀上,复用这些方案即可。
Problem Description Eddy’s interest is very extensive, recently he is interested in prime number.
Problem Description The digital root of a positive integer is found by summing the digits of the integer.
Problem Description Ignatius was born in a leap year, so he want to know when he could hold his birthday party.
Problem Description Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk.
Problem Description Given a positive integer N, you should output the most right digit of N^N.
Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number.
实现数据进行文件的存储和读写。 本软件也就到此结束了。 没多少可以讲的。 因为这个小软件也就8个类,主要学习的也就是一个分层思想的简单应用。 package cn.hncu.
这个。。。没多少好解释的。。。 表现层的增删改查的具体实现类。 package cn.hncu.addr.business; import javax.swing.JOptionPane; import cn.hncu.addr.dao.AddrDaoFile; import sun.security.util.Length; public class AddrBusiness { //静态方法。
查找模块: 年龄可进行段查找。 其他的都是模糊匹配。 空格为无用字符,会屏蔽的(除年龄)。 (如果在年龄中输入空格,会出现异常,当时没想到这点,要防护这点很容易的,但因为在这个小软件的编写过程,我主要学的是java项目开发的分层思想,软件可能bug比较多,望见谅。
删除地址的表现层类。 如果没有选中要删除的地址信息,会出现窗口提示: 删除地址界面:(无法修改数据,只能看) /* * DeletePanel.java * */ package cn.
修改地址信息的一个表现层类。 必须选中地址,才能修改,否则会弹出窗口提示, 修改地址界面: /* * UpdatePanel.java * */ package cn.
添加地址信息界面。 年龄和地址必须是数字,否则会弹出窗口提示。 地址信息不能为空。 /* * AddPanel.java * * Created on __DATE__, __TIME__ */ package cn.
这个是表现层的主界面。 /* * ListPanel.java * */ package cn.hncu.addr.ui; import javax.swing.