introduction to java activity 1

1
Hands-on Exercise Objective After completing the hands-on exercises, you will be able to: Develop simple Java program using notepad. How to handle compile time errors. Problem Statement: Fix the compilation errors and run the program? The program should print “My First Java Program” in the console. Class myProgram { Public static void main(String arg[]);{ system.out.Println("My First Java Program"); } } Save the file as “MyProgram.java” and compile it

Upload: swati-malhotra

Post on 16-Feb-2016

216 views

Category:

Documents


0 download

DESCRIPTION

Introduction to Java Activity 1

TRANSCRIPT

Page 1: Introduction to Java Activity 1

Hands-on Exercise ObjectiveAfter completing the hands-on exercises, you will be able to:

Develop simple Java program using notepad. How to handle compile time errors.

Problem Statement:

Fix the compilation errors and run the program? The program should print “My First Java Program” in the console.

Class myProgram { Public static void main(String arg[]);{ system.out.Println("My First Java Program"); }}

Save the file as “MyProgram.java” and compile it