“HELLO WORLD”
LAB DESCRIPTION:
This lab will introduce the first JAVA program to students. Students will understand the first basic code in Java, which is “System.out.println()”. In addition, student will also learn how to start the new program in Java with main() function. Finally, student will see the result of what they have created on the output screen, which is “Hello World”.
In addition, students should avoid some error during compile the file by checking their type. Java is case-sensitive; it will be different between capital and non-capital letters.
CODE:
// Huy Ly // CET 3640 // 2/1/2014 public class HelloWorld { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello World"); } }
SCREENSHOT:
Input Code:
Output Screen: