CIS 119

Programming I: Java

AC Chapin
achapin@harford.edu
please use the discussion boards in BlackBoard
unless you need a private response
(i.e. asking about a grade)

Office Hours
by appointment until Spring Semester


FAQ

Projects in NetBeans

Input Using Scanner

On the Command Line

get Netbeans

CLASSES & ASSIGNMENTS
  • credit for complete zipped project directory only
  • name projects cwkclassnumberggroupnumber e.g. cwk01g03 or hwknumberuserid e.g. hwk01jsmith
  • only use concepts we have covered in class so far
  • brief comments whenever you are doing something not totally obvious

Compiling, Variables

  • compile and interpret
  • ints, doubles, booleans, Strings
  • declaring, assigning
  • arithmetic operators

VariableExample.java

Deitel Chapter 2


Compiling and Variables

Variables, Arithmetic Operators, and Expressions

VariableExample.java

ExpressionExample.java

More about % mod operator.

Deitel Chapter 2


Expressions

Using Objects

Classes

Conditionals 1- if-else

Conditionals 2 - nesting

Conditionals 3 - booleans

Loops 1 - while

Loops 2 - For

Loops 3 - nesting / sentinel

Methods and Memory

Methods

Methods in Classes

Accessors Mutators & Constructors

Public & Private

Primitive Arrays

Array Search

Using Arrays

Arrays - FirstEmpty

Object Arrays

Inheritance

Polymorphism