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

Post on 20-Jan-2016

216 views 0 download

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

Computer Science 119

Intro to Java9/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

Today

•Discuss Syllabus

•What is Java?

•How to Execute a Java program.

•Zybooks assignment

Syllabus

• You should have a copy

Programming

• What is a Program?

• What is a Programming Language?

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

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.

Classes and Objects

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

Planet earth, mars;

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.

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.