Computer Science 119
Download
Report
Transcript Computer Science 119
Computer Science 119
Intro to Java
1/12 and 1/15
Computer Science 119
Beginning Level Course
No Previous Programming Assumed
Quite a Bit of Time Spent on Programs and
Reading
Today
•Discuss Syllabus
•What is Java?
•How to Execute a Java program.
•Reading 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:
Read Chapter 1 of Imagine! Java