摘要: guava-librarieshttp://code.google.com/p/guava-libraries/public class MultiMapDemo { public static void main(String[] args) { HashMultimap<String, String> map = HashMultimap.create(); map.put("a", "AAAAA"); map.put("a", "AAA"); map.put("a", &quo 阅读全文
posted @ 2012-10-26 15:22 Leo Forest 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 接口Car.java/* * package factory; */public interface Car { public abstract void start();}实现类Pickup.java/* * package factory; */public class Pickup implements Car { public void start() { System.out.println("Pickup start!"); } }实现类Mini.java/* * package factory; */public class Mini imp... 阅读全文
posted @ 2012-10-26 14:05 Leo Forest 阅读(210) 评论(0) 推荐(0) 编辑
摘要: import java.awt.BorderLayout;import java.awt.Color;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.util.logging.Level;import java.util.logging.Logger;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JProgressBar;impo 阅读全文
posted @ 2012-10-26 10:03 Leo Forest 阅读(206) 评论(0) 推荐(0) 编辑