Activity_03 - COMP 1210 Reading: Chapter 3.1 - 3.6 Chapter...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP 1210 Activity 3: Classes and Objects Page 1 of 7 COMP 1210 | Fall 2011 Page 1 of 7 Reading : Chapter 3.1 - 3.6 pages 114-137 Chapter 3.8 - 3.11 pages 141-154 Terminology: new operator class object reference variable instantiation null method static method constructor dot ( . ) operator parameter return alias garbage collection String class immutable Java API package import declaration Random class Math class NumberFormat class DecimalFormat class wrapper class autoboxing unboxing component container frame, JFrame class panel, JPanel class label, JLabel class ImageIcon class COMP 1210 Coding Standard Additions When using the import declaration, import classes from the same package individually (i.e. do not use the * notation). When making calculations with π, use Math.PI rather than the literal value 3.141. You should always try to use constants when available. From now on, use nextLine to get numerical input from the user and convert it to a number using methods from the corresponding wrapper class.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COMP 1210 Activity 3: Classes and Objects Page 2 of 7 COMP 1210 | Fall 2011 Page 2 of 7 Due : Activity : Monday, January 30, 2012 by the end of the lab. Goals: By the end of this activity you should be able to do the following: Understand how to instantiate an object using the new operator Use the Java standard library (the Java API) to look up a class Use the String, and Scanner class
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/02/2012 for the course COMP 1210 taught by Professor Cross during the Winter '07 term at Auburn University.

Page1 / 7

Activity_03 - COMP 1210 Reading: Chapter 3.1 - 3.6 Chapter...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online