随笔分类 -  Java

摘要:1 public class Static { 2 3 public static void main(String[] args) { 4 A a = new A(); 5 a.a();// a 6 7 A a1 = new B(); 8 a1.a();// a 9 B a2 = new B();10 a2.a();// b11 }12 13 }14 15 class A {16 17 public static void a() {18 System... 阅读全文
posted @ 2013-11-01 21:39 烫烫烫烫 阅读(680) 评论(0) 推荐(0)
摘要:1 2 package Swing_exercise; 3 4 import java.awt.*; 5 6 import javax.swing.*; 7 8 public class Calc extends JFrame { 9 10 JPanel mainPanle, show, rightPanel;11 12 JTextField showIn;13 14 JButton[] jbs = new JButton[9];15 JButton zero = new JButton("0");16 JButton add1 = new JButton("+& 阅读全文
posted @ 2013-10-12 15:20 烫烫烫烫 阅读(462) 评论(0) 推荐(0)