110 likes | 128 Views
Learn how a computer operates, communicates, and understands Java code. Get hands-on experience using DrJava and discover the fundamentals of expressions and statements in Java programming.
E N D
CSE 113 Week 1 January 14 – 18, 2008
Monday • Syllabus • Course Policies
Wednesday Announcements • If you do not have a syllabus, please come get one. • If you have not signed and turned in the last page of the syllabus, please do so. • If you are having registration issues, please come and see me.
Wednesday Game Plan • Questions about course/policies • Recitation Change Form • Introduce themes of course
Wednesday • How does a computer work? • What does it really understand? • How do we speak to a computer?
Friday Announcements • Need syllabus? Come down and get one. • Make sure to turn in signed last page of syllabus • Lab change form – fill out and return if needed • No class Monday
Friday Game Plan • Introduction to DrJava environment • Expressions • Statements
Friday • DrJava is broken up into three panes: files, definitions, interactions • We will spend the first part of the semester working in the interactions pane • There we can type Java code and have DrJava evaluate it for us
Friday • Expressions are code that can be evaluated to produce a result • Arithmetic expressions • 3 + 4 • Hit enter, and DrJava reports 7 as the result of evaluating that expression
Friday • Putting a ; at the end of an expression turns it into a statement • DrJava does not return the value that results • You can use a special statement, System.out.println(“Text”); To print the word Text to the screen.
Friday • The types of things are very important to Java • Numbers that are whole numbers (integers) are treated differently than those with a fractional part (real numbers) • Typing in ½ gives a result that may be surprising