Computer Science 119 Intro to Java 9/24 and 9/25.

10
Computer Science 119 Intro to Java 9/24 and 9/25

Transcript of Computer Science 119 Intro to Java 9/24 and 9/25.

Page 1: Computer Science 119 Intro to Java 9/24 and 9/25.

Computer Science 119

Intro to Java9/24 and 9/25

Page 2: Computer Science 119 Intro to Java 9/24 and 9/25.

Computer Science 119

Beginning Level Course

No Previous Programming Assumed

Quite a Bit of Time Spent on Programs and Online Reading

Page 3: Computer Science 119 Intro to Java 9/24 and 9/25.

Today

•Discuss Syllabus

•What is Java?

•How to Execute a Java program.

•Zybooks assignment

Page 4: Computer Science 119 Intro to Java 9/24 and 9/25.

Syllabus

• You should have a copy

Page 5: Computer Science 119 Intro to Java 9/24 and 9/25.

Programming

• What is a Program?

• What is a Programming Language?

Page 6: Computer Science 119 Intro to Java 9/24 and 9/25.

Java• Written by James Gosling and others, 1995

– Sun Systems

• Object Oriented.

• Platform Independent bytecode runs on any computer with a JVM

• Can run with an Internet browser Applets and Applications

Page 7: Computer Science 119 Intro to Java 9/24 and 9/25.

Where is Java Used?

Can be used to develop apps for Android phones.

Clearwater Analytics in Boise uses it to write

programs to do asset management.

Good language for learning object oriented

programming.

Page 8: Computer Science 119 Intro to Java 9/24 and 9/25.

Classes and Objects

• To create two objects of type Planet: public class Planet { // class definition }

Planet earth, mars;

Page 9: Computer Science 119 Intro to Java 9/24 and 9/25.

Executing Java Program

• Login to onyx.• Edit the program

– Can use any editor, but we'll use eclipse.

• Save to compile the program.• Execute the program.• Logout of onyx.

• How to do this.

Page 10: Computer Science 119 Intro to Java 9/24 and 9/25.

Reading Assignments

From the links on my website: Read from the beginning though files and directories

of Beginners Guide of Guide for Linux It is NOT required that you download eclipse. JUST

READ the Beginners Eclipse Tutorial for now. You will have access to eclipse on onyx in the CS dept.

For next week: Complete Using zyBooks. Complete sections 1.1 through 1.6 in zyBooks.

Challenge Questions can be done later.