Beginning Programming (Java) Eels, A Simple Java Program ...
Transcript of Beginning Programming (Java) Eels, A Simple Java Program ...
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 Purpose: The purpose of this lecture is to enter and execute a simple Java Program using the IDE NetBeans. Overview: We are going to start NetBeans and locate your projects on your flash drive in a folder labeled L003 that is in folder Lectures. Steps: 1. Insert your USB Flash Drive in the USB receptacle on your computer. 2. Click the Start Button on your computer and select All Programs in the left column.
Figure 1. Start Button | All Programs
1
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 3. Click NetBeans.
Figure 2. NetBeans
2
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 4. Click NetBeans IDE.
Figure 3. NetBeans IDE 7.
3
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 5. Alternatively, double-click the NetBeans IDE icon on the desktop (if it exists).
Figure 4. NetBeans IDE Icon
4
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 6. Observe the NetBeans IDE flash screen while the IDE loads into your computer.”
Figure 5. NetBeans IDE Loading
5
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 7. Observe the NetBeans IDE Home Display
Figure 6. NetBeans IDE Home
6
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 8. Click File | New Project
Figure 7. File Dropdown Menu
7
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 9. Accept the Java selection and click Next >
Figure 8. Java | Next >
8
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 10. Change the Name and Location
10.1. Change the Project Name to L003-0 10.2. Click Browse to change the Project Location and the Project Folder
Figure 9. Change Project Name to L003-0
9
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 11. Select your USB Flash Drive
Figure 10. Change Project Location to your USB Flash Drive
10
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 12. Select folder CMSC 1513 Beginning Programming on your USB Flash Drive
Figure 11. Folder CMSC 1513 Beginning Programming
11
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 13. Select folder L003 in folder Lectures
Figure 12. Folder L003
12
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 14. Observe your selections of the Project Location and Project Folder on your USB Flash Drive.
Figure 13. Your project is located on your USB Flash Drive
13
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 15. Observe the Java project template.
Figure 14. Java Project Template
14
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 16. Enter program.
Figure 15. Eels
15
Beginning Programming (Java) Eels, A Simple Java Program CMSC 1513 Lecture 3 17. Executing program.
Figure 16. Program Execution
16