Computer Science 119 Intro to Java 9/24 and 9/25.
-
Upload
catherine-nicholson -
Category
Documents
-
view
216 -
download
0
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/1.jpg)
Computer Science 119
Intro to Java9/24 and 9/25
![Page 2: Computer Science 119 Intro to Java 9/24 and 9/25.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/2.jpg)
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/3.jpg)
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/4.jpg)
Syllabus
• You should have a copy
![Page 5: Computer Science 119 Intro to Java 9/24 and 9/25.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/5.jpg)
Programming
• What is a Program?
• What is a Programming Language?
![Page 6: Computer Science 119 Intro to Java 9/24 and 9/25.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/6.jpg)
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/7.jpg)
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/8.jpg)
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/9.jpg)
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.](https://reader033.fdocuments.us/reader033/viewer/2022051417/56649ea95503460f94badbcd/html5/thumbnails/10.jpg)
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.