java程序设计基础篇 复习笔记 第七单元&&第八单元
2015-01-20 14:28
453 查看
7.1 int[][] triArray{ {1}, {1,2}, {1,2,3}, }; 7.2 array[2].length 8.1 Unified Modeling Language:UML UML class diagram Circle _____________ radius:double _____________ +Circle() +Circle(newRadius:double) getArea():double circle1:Circle _________ radius = 19 8.2 client 8.3 reference variable ClassName objectRefVar; null NullPointerException 8.4 object member access operator:. instance variable instance method static variable:class variable static method getter:accessor setter:mutator pass by value calling object 8.5 java.util.Date +Date() +Date(elapseTime:long) +toString():String +getTime():long +setTime(elapseTime: long)void 8.6 java.util.Random +Random() +Random(seed:long) +nextInt():int +nextInt(n:int):int +nextLong():long +nextDouble():double +nextFloat():float +nextBoolean():boolean //Random random1 = new Random(3) 8.7 javax.swing.JFrame Jframe frame1 = new JFrame(); frame1.setTitle("Window 1"); frame1.setSize(200,150); frame1.setLocation(200,100); frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame1.setVisible(true); JButton jbtOK = new JButton("OK"); JLabel jlblName = new JLabel("Enter your name: "); JTextField jtfName = new JTextField("Type in here"); JCheckBox jchkBold = new JCheckBox("B"); JRadioButton jrbRed = new JRadioButton("Red"); JComboBox jcboColor = new JComboBox(new String[]{"freshman","sophomore","junior","senior"}); JPanel panel = new JPanel(); panel.add(jbtOK); 8.8 Math.PI 8.9 package-private:package-access private:类的成员 public:类 Keyword: accessor method:getter method action attribute behavior class client constructor data field date-field encapsulation default constructor dot operator:object access operator instance instance method instance variable instantiation mutator method:setter null no-arg constructor object-oriented programming:OOP Unified Modeling Language:UML package-private:package-access private property public reference variable reference type state static variable static method
相关文章推荐
- java程序设计基础篇 复习笔记 第五单元
- java程序设计基础篇 复习笔记 第六单元
- java程序设计基础篇 复习笔记 第四单元
- java程序设计基础篇 复习笔记 第一单元
- java程序设计基础篇 复习笔记 第三单元
- Java语言程序设计 【基础篇】 【学习笔记】
- java—学习笔记(java语言程序设计基础篇&java程序设计)
- Java复习总结:Java面向对象程序设计 —面向对象(基础篇)
- JAVA学习笔记<基础篇>
- 《Java核心技术》复习笔记 - 第三章 Java基本的程序设计结构
- 数据结构复习笔记(Data Structures & Algorithms in Java, 4th) --Garbage Collection
- Java复习笔记-第7天
- 复习《Thinking in Java》笔记四:第十二章笔记 异常处理
- Java 复习笔记_第5天
- Java 复习笔记_第2天
- 复习《Thinking in Java》笔记一:第五、第八章笔记
- Java复习笔记 第9天
- Java 复习笔记_第4天
- 复习《Thinking in Java》笔记二:第九、十章笔记
- Java复习笔记-第6天