14_1_2008_Recitation_Guide

14_1_2008_Recitation_Guide - Recitation Guide for January...

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

View Full Document Right Arrow Icon
Recitation Guide for January 14 th , 2008 I. Housekeeping a. New TAs: Daniel Fuller , Sean Hussey and Tyler Meehan . b. Homework 1 due Friday January 18 th . c. No recitation Monday January 21 st . Additional office hours will probably be held. Stay tuned to the coweb and t-square. II. Basic Java a. Common Shorthand i. x = x + 1; 1. x++; 2. x +=1; ii. x = x 1; 1. x--; 2. x -=1; b. Conditionals i. AND 1. General form a. ((<expression 1>) && (<expression 2>)) 2. All components of the expressions must be true for the entire expression to evaluate to true , else false . ii. OR 1. General form a. ((<expression 1>) || (<expression 2>)) 2. Only one component of the expression must be true for the entire expression to evaluate to true . Only false when all components of the expression evaluate to false . c. Iterating in Java i. See Spring_2008_Iterating_in_Java_MATLAB_and_Python_to_Java_Tutorial.p df d. Arrays i. length is an instance variable that is the length, capacity, of the array. ii.
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 / 3

14_1_2008_Recitation_Guide - Recitation Guide for January...

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