- 博客(3)
- 收藏
- 关注
CarDemo
[code="java"] public class Car { // the car's year model private int yearModel; // the make of the car. private String make; // the car's current speed. private int speed; // no-ar...
2013-04-10 22:18:52
183
原创 字符串MD5值,适用于大文本的比较
public class Test { protected static char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; public static void main(String[] arg...
2013-04-01 18:15:16
651
原创 【扑克牌的洗牌和排序】
用java实现扑克牌的洗牌和排序功能:创建抽象类Card 其中有一个方法showhand()用来输出牌的信息。 新建Card的子类 squard、heart 、diamond、club 其中要有数组包含牌号;然后建立一个game类main在其中,建立char数组包含13张牌,然后生成52张牌 ;然后编写一个washcard() 然后根据花色和数字排序 具体实现如下: [...
2013-03-28 21:15:21
278
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人