摘要:
import java.text.SimpleDateFormat; import java.util.Date; import java.util.Timer; import java.util.TimerTask; class MyTask extends TimerTask { public void run() { SimpleDateFor... 阅读全文
posted @ 2014-08-14 17:23
塔斯曼
阅读(182)
评论(0)
推荐(0)
摘要:
不使用正则表达式: import java.util.Scanner; public class RagexDemo01 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = scanner.nex... 阅读全文
posted @ 2014-08-14 16:40
塔斯曼
阅读(138)
评论(0)
推荐(0)
摘要:
import java.util.Observable; import java.util.Observer; class House extends Observable { private float price; public float getPrice() { return price; } public void ... 阅读全文
posted @ 2014-08-14 15:36
塔斯曼
阅读(124)
评论(0)
推荐(0)
摘要:
import java.util.Comparator; class Studentxx { private String nameString; private int age; public Studentxx(String nameString, int age) { // super(); ... 阅读全文
posted @ 2014-08-14 15:08
塔斯曼
阅读(238)
评论(0)
推荐(0)
摘要:
class BinaryTree { class Node { private Comparable data; private Node left; private Node right; public void addNode(Node newNode) { if (ne... 阅读全文
posted @ 2014-08-14 14:46
塔斯曼
阅读(135)
评论(0)
推荐(0)
摘要:
class Studentx implements Comparable { private String name; private int age; private float score; public Studentx(String name, int age, float score) { this.name = n... 阅读全文
posted @ 2014-08-14 14:28
塔斯曼
阅读(204)
评论(0)
推荐(0)