CS 106A Lecture Notes - Lecture 2: Control Flow, Code Reuse, Semicolon
Document Summary
Announcements: puppy pictures for people who come to lecture, section sign-ups open from 5pm on thu mar 31 through 5pm sun. Apr 3: thu 3/31 3:00-4:30pm in gates b02 alisha will help those who need help to set up eclipse, code worked on during lecture posted on website as zip file. Open new java project in eclipse; select file from downloads. Karel code: lots of keywords e. g. import public class public void are fixed, run project with button on tool bar, program structure. Statement is a command to be executed: compiling/ running. Source code: set of instructions in a program. Compile: translate a program from one language to another. Byte code: java compiler changes program into byte code to read. Output: program as seen by viewer: names and identifiers. Identifier: a name given to an item in your program. Must start with a letter or _ or $ Subsequent characters can be any of those or a number: keywords.