View Full Document

Introduction to Computing and Programming in Java: A Multimedia Approach



View the full content.
View Full Document
View Full Document

7 views

Unformatted text preview:

i i i main 2005 1 11 page i i BETA Version January 10th 2005 Introduction to Computing and Programming in Java A Multimedia Approach Mark Guzdial and Barbara Ericson College of Computing GVU Georgia Institute of Technology PRENTICE HALL Upper Saddle River New Jersey 07458 i i i i i main 2005 1 11 page ii i ii Copyright held by Mark Guzdial and Barbara Ericson 2005 i i i i i main 2005 1 11 page iii i iii Dedicated to our children Matthew Katherine and Jennifer i i i i i main 2005 1 11 page iv i Contents Contents iv Preface I 1 Introduction 7 1 Introduction to Computer Science and Media Computation 1 1 What is Computer Science About 1 2 What Computers Understand 1 3 Media Computation Why Digitize Media 1 4 Computer Science for Everyone 1 4 1 It s About Communication 1 4 2 It s About Process 8 8 13 15 16 17 17 2 Introduction to Java 2 1 Java 2 1 1 History of Java 2 1 2 Introduction to Objects and Classes 2 2 Introduction to DrJava 2 2 1 Starting DrJava 2 3 Java Basics 2 3 1 Math Operators 2 3 2 Printing the Result of a Statement 2 3 3 Types in Math Expressions 2 3 4 Casting 2 3 5 Relational Operators 2 3 6 Strings 2 4 Variables 2 4 1 Declaring Variables 2 4 2 Using Variables in Calculations 2 4 3 Memory Maps of Variables 2 4 4 Object Variables 2 4 5 Reusing Variables 2 4 6 Multiple References to an Object 2 5 Concepts Summary 2 5 1 Statements 2 5 2 Relational Operators 2 5 3 Types 2 5 4 Casting 2 5 5 Variables 19 19 19 20 21 21 24 24 24 27 27 27 29 31 31 31 32 34 36 37 39 39 40 40 40 41 iv i i i i i main 2005 1 11 page v i v 3 Introduction to Programming 3 1 Programming is About Naming 3 2 Files and their Names 3 3 Class and Object Methods 3 3 1 Invoking Class Methods 3 3 2 Invoking Object Methods 3 4 Working with Turtles 3 4 1 Defining Classes 3 4 2 Creating Objects 3 4 3 Sending Messages to Objects 3 4 4 Objects Control Their State 3 4 5 Additional Turtle Capabilities 3 5 Creating Methods 3 5 1 Methods that Take Input 3 6 Working with Media 3 6 1 Creating a Picture



Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Introduction to Computing and Programming in Java: A Multimedia Approach and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Computing and Programming in Java: A Multimedia Approach and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?