2014年8月26日

File List

摘要: 1 public class Question1 { 2 3 public static void main(String[] args) { 4 String dir=""; 5 if(args.length!=1) 6 { 7 ... 阅读全文

posted @ 2014-08-26 20:26 @冰糖 阅读(279) 评论(0) 推荐(0) 编辑

浮点数判断

摘要: 1 public boolean accountBalance(double accountBalance){ 2 3 String regex1 ="[1-9]+\\d+[.][0]"; 4 String regex2 ="[0][.]\\d+"; 5 ... 阅读全文

posted @ 2014-08-26 20:16 @冰糖 阅读(175) 评论(0) 推荐(0) 编辑

JRadioButton

摘要: 1 public class SwingTest123 extends JFrame implements ActionListener { 2 3 JRadioButton boy, girl; 4 JLabel mess; 5 ButtonGroup group; 6... 阅读全文

posted @ 2014-08-26 20:10 @冰糖 阅读(396) 评论(0) 推荐(0) 编辑

TreeSet 排序

摘要: 1 class Person1 implements Comparable { 2 private Float height; 3 private String name; 4 5 Person1(float height) 6 { 7 t... 阅读全文

posted @ 2014-08-26 19:33 @冰糖 阅读(168) 评论(0) 推荐(0) 编辑

LinkedList 实现排序

摘要: 1 import java.util.Collections; 2 import java.util.Comparator; 3 import java.util.LinkedList; 4 5 class Person{ 6 private float height; 7 pr... 阅读全文

posted @ 2014-08-26 19:24 @冰糖 阅读(7501) 评论(0) 推荐(0) 编辑

导航