Difference between revisions of "Java/C2/Hello-World-Program-in-Eclipse/English"
(Created page with ''''Title of script''': HelloWorld in Java using Eclipse '''Author''': TalentSprint '''Keywords: '''HelloWorld, class, public, video tutorial {| style="border-spacing:0;" | s…') |
(No difference)
|
Revision as of 15:36, 27 November 2012
Title of script: HelloWorld in Java using Eclipse
Author: TalentSprint
Keywords: HelloWorld, class, public, video tutorial
| Visual Cue | Description |
| Slide 1
Welcome |
Welcome to the spoken tutorial on HelloWorld in Java on Eclipse. |
| Slide 2
Learning Outcomes |
In this tutorial, you will learn to write a simple program in Java using Eclipse. |
| Slide 3
Tools Used |
For this tutorial we are using
Eclipse 3.7.0 and Ubuntu 11.10 |
| Slide 4
Pre-requisites |
For this tutorial, you should have Eclipse installed on your system.
|
| Slide 5
"HelloWorld"
|
Here is the java program that prints the message Hello World
|
| Minimize slides and launch Eclipse
Alt + F2 > eclipse |
Press Alt and F2 and type eclipse in the dialog box and hit enter.
|
| Click on File > New > Project | Now we will create a project.
|
| Select Java Project.
|
Select Java Project option in the list of Wizards and click Next.
|
| Type DemoProject
|
Type DemoProject (without spaces) in the project name.
|
| Point to the Project Explorer portlet on the left. | Now Right click on the DemoProject and go to New option and select Class
|
| Point to the New Java Class portlet
|
Type DemoClass (without spaces) in the Name field.
Also try to keep one activity in one row.. |
| Point to the src directory in Project Explorer Portlet | Eclipse creates a file with the name called DemoClass.java .
|
| Point to the “code editor”
After the line “public static void main”
|
As we can see, Eclipse has filled most of the code in the program.
|
| Click on the code editor | Now let us compile and execute the program.
|
| Point to output console at the botom of the code editor | The output message HelloWorld is displayed in the console window.
|
| Replace HelloWorld with Hello Java and run the code. | Now, let us change the code to print a different message.
|
| Point to the line public class DemoProgram
|
Now let us understand the program piece by piece.
|
| Minimize the Eclipse window and switch to slides.
Summary |
We have come to the end of this tutorial.
We have also understood what each piece of the program does. |
| Slide 7Assignment
|
Create a java class by the name Greet that prints Program Successful when executed. |
Slide 8About the Spoken Tutorial Project
|
To know more about the Spoken Tutorial project, watch the video available at the following link, that summarises the project.Alternatively, you can download and watch it. |
Slide 9Spoken Tutorial WorkshopsThe Spoken Tutorial Project Team
|
The Spoken Tutorial Project Team.
Conducts workshops using spoken tutorials.
|
Slide 10Acknowledgement
|
Spoken Tutorial Project is a part of the Talk to a Teacher project.
|
Slide 11About the contributor
|
This tutorial has been contributed by TalentSprint.
|