0% found this document useful (0 votes)
7 views

OBJECT Oriented Program

How to install java Basic java commands

Uploaded by

phamtheminh2409
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

OBJECT Oriented Program

How to install java Basic java commands

Uploaded by

phamtheminh2409
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

University of Science and Technology of Hanoi

Address: Building 2H, 18 Hoang Quoc Viet, Cau Giay, Hanoi


Telephone/ Fax: +84-4 37 91 69 60
Email: [email protected]
Website: http://www.usth.edu.vn

Lab Session 1 : Basic Java


Part 1: Install Java Development Environment
- Download and Install Java JDK:
http://www.oracle.com/technetwork/java/javase/downloads/
- Download and install Editor/IDE:
Notepad++: https://notepad-plus-plus.org/
- Compile and run the “HelloWorld” program. The following is the Java source code:
public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello World");
}
}

Part 2: Pratice Java excercises: Visit the website: https://introcs.cs.princeton.edu/java/11hello/ to do


your labwork1.
Task 1: Read and do the subsection “1.1. Your First Java Program: Hello World” in the website
above.
Task 2: Do all the Exercises and Web Exercises of the “subsection 1.1.” above.
Task 3: Read and do the subsection “1.2. Built-in Types of Data” in the website above.
Task 4: Do all the Exercises of the “subsection 1.2.” above.
Task 5: Read and do the subsection “1.3. Conditions and Loops” in the website above.
Task 6: Do all the Exercises of the “subsection 1.3.”

Note: you need to submit the source codes of your lab works to the google drive folder of the course.

You might also like