Java Programming Basics Review Notes unit seventh && Unit eighth

Source: Internet
Author: User

7.1 int[][] triarray{{1},{1,2},{1,2,3},};7.2 array[2].length8.1 Unified Modeling language:umluml class diagramcircle__ ___________radius:double_____________+circle () +circle (newradius:double) Getarea ():d oublecircle1:circle_________ Radius = 198.2client8.3reference Variableclassname Objectrefvar;nullnullpointerexception8.4object member access Operator:.instance variableinstance methodstatic variable:class variablestatic methodgetter:accessorsetter: Mutatorpass by Valuecalling Object8.5java.util.date+date () +date (Elapsetime:long) +tostring (): String+getTime (): Long +settime (Elapsetime:long) void8.6java.util.random+random () +random (Seed:long) +nextint (): Int+nextInt (n:int): int+ Nextlong (): long+nextdouble ():d ouble+nextfloat (): Float+nextboolean (): boolean//random random1 = new Random (3) 8.7javax.swing.jframejframe 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 ();p anel.add (Jbtok); 8.8math.pi8.9package-private:package-accessprivate: Member of Class public: Class Keyword:accessor Method:getter Methodactionattributebehaviorclassclientconstructordata Fielddate-field Encapsulationdefault Constructordot operator:object Access Operatorinstanceinstance MethodInstance Variableinstantiationmutator method:setternullno-arg constructorobject-oriented programming:OOPUnified Modeling Language:umlpackage-private:package-accessprivatepropertypublic Reference VariableReference typestatestatic Variablestatic method

  

Java Programming Basics Review Notes unit seventh && Unit eighth

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.