Activity_02

Activity_02 - COMP 1210 Reading: Chapter 2.1 - 2.6 Activity...

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

View Full Document Right Arrow Icon
Activity 2: Data & Expressions Page 1 of 4 COMP 1210 | Spring 2012 Page 1 of 4 Reading : Chapter 2.1 - 2.6 pages 58-91 Terminology: string literal method parameter string concatenation escape sequence variable variable declaration variable initialization assignment statement assignment operator constant byte, short, int, & long float & double char boolean character literal arithmetic operator operator precedence increment / decrement operators assignment conversion promotion casting delimiter COMP 1210 Coding Standard Additions Follow the standards in the book when naming variables and constants. o Variables and constants must be declared at the beginning of the main method. o Variables should start with a lower case and should use medial capitals (also called “camelCase”. Examples: numberPeople , xAxis , result o Constants should be in all caps with words separated by an underscore. Examples: MAX_NUMBER , BASELINE , TAX_RATE o Both variables and constants should have descriptive variable names. This convention is not enforced by Checkstyle; however, it will be graded by your GTA in the projects. Example:
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Activity_02 - COMP 1210 Reading: Chapter 2.1 - 2.6 Activity...

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

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