• Tidak ada hasil yang ditemukan

Computer Programming 1401101-4

N/A
N/A
Protected

Academic year: 2024

Membagikan "Computer Programming 1401101-4"

Copied!
31
0
0

Teks penuh

(1)

COMPUTER PROGRAMMING 1401101-4

LAB#1

Dr. Asmaa Alayed

1

(2)

PART#1 HOW TO INSTALL NetBeans 8.2

2

(3)

FIRST: DOWNLOAD JDK8

Follow this link:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

3

1.

2.

(4)

4

(5)

5

(6)

SECOND: DOWNLOAD Netbeans 1. You can download it from the link:

https://netbeans.org/downloads/

6

2. Choose OS

3. Then, press Download

(7)

7

4.

(8)

8

5.

(9)

9

6.

(10)

10

7.

(11)

11

8.

(12)

12

9.

(13)

13

(14)

14

CREATION OF A NEW PROJECT

File  New Project

(15)

CREATION OF A NEW PROJECT

15

Choose Java, then Java Application

Press Next

(16)

CREATION OF A NEW PROJECT

16

Then, press Finish Now, Write your project name

and specify its location

(17)

CREATION OF A NEW PROJECT

17

Now, you have your new project

(18)

MAIN COMPONENTS OF A NEW PROJECT WINDOW

18

The Project Window

The Navigator Window

The Source Editor Window

(19)

MAIN COMPONENTS OF A NEW PROJECT WINDOW

19

The Project Window: contains a tree view of the components of the project, including source files, libraries that your code depends on.

The Source Editor Window: with a file called FirstProgram.java

The Navigator Window: to navigate between elements within the selected class.

(20)

Now, Make your Program Prints “This Is My First Program”

20

(21)

Save Your Program (File  Save)

21

(22)

Compile Your Program (Run  Compile F9)

22

(23)

Run Your Program (Run  Run Project F6)

23

(24)

Your program output appears here 24

(25)

25

Error in this line

Error in the following section or block

There is an error in the program

How to locate your compilation errors?

(26)

PART#2 EXPORT & IMPORT JAVA PROJECTS

26

(27)

EXPORT JAVA PROJECTS

27

1. Select a project to export

2. File  Export Project  Zip

3. From Browse, choose location to export your project to, and enter a

project name 5. Press Export

(28)

IMPORT JAVA PROJECTS

28

2. Select a project to import 1. File  Import Project  From Zip

3. Press Import

(29)

PART#3 WRITING FIRST JAVA PROGRAMS

29

(30)

Don’t forget to start all of your programs with:

/*

Name:

ID:

GROUP:

Lab#

*/

30

(31)

EXERCISE#1

Using Escape Sequences, Write a program to print your NAME,

UNIVERSITY, MAJOR on the screen. The output will be as the following:

31

Referensi

Dokumen terkait

This project uses SolidWorks; a CAD software to control parameters of mould components from a simple worksheet, namely Design Table.. The output will be a demonstration of

Moreover, the horizontal Laplacian △h depends only on the horizontal curvature components of F , the vertical Laplacian △v depends only on the vertical curvature components of F ,

As I said earlier, we are going to modify the SCSS files of the UI components and run them using Sencha Cmd, which will generate a CSS file. Modifying the SCSS files involves

The following procedure (which is stored in the Code window for the Sheet1 object) uses the Deactivate event to prevent a user from activating any other sheet in the workbook.

As shown in Figure 12-2, to get into the Code window of the workbook module, either double- click the ThisWorkbook object, or right-click it and select View Code.. As soon as you

You have already seen a real-time list of all of the changes made to the files within a selected folder of your local working tree in the Git window, as shown in the

The aim of using the BlockingQueue data structure When a client sends a code that contains a user input thread must act differently rather than just sending output to client, it must

Hardware Basics Output CPU Devices Input Devices Main Secondary Memory Memory Figure 1.1: Functional view of a computer include mobile computing, networking,