SlideShare a Scribd company logo
1 of 13
Mobile App:IT
Eclipse Basics and Hello World
IHS GIRLS TECH CLUB: ECLIPSE
BASICS AND HELLO WORLD
CREATING YOUR FIRST JAVA PROGRAM
The first steps in
creating our
Hello World
program is to create
our Java project
To do this click on
File/New/Project
CREATING YOUR FIRST JAVA PROGRAM
This will open the New
Project Wizard.
Select Java Project and
click Next>
For the Project Name
type "HelloWorld"
and click Finish
All other fields
can remain in their
default setting
After the project has
been created, you
have to create a class.
To do this, go to
File/New/Class
Under Source folder browse
and find the src for the project
you created earlier. When
completed the source folder
text field should read
HelloWorld/src
For the class name enter
"HelloWorld"
Make sure that the "public
static void main(string[] args)"
checkbox is checked.
All other fields may be left as
default
Click Finish
We have now created both the project and class. These steps will
have to be completed every time we start a new java program.
Once you create a class your .java program should load and look
like this. At this time don't worry about what everything means,
we will cover that as the class moves forward
WRITING THE CODE
As you have already learned, Java follows simple syntax when
writing program instructions.
To write the code for Hello World
type the following inside the
main method.
Click Save
UNDERSTANDING THE CODE
If we were to break out the line of code we just wrote it would
read as follows.
Computer (system) output (.out) this line (println) Hello World!
("Hello World!";).
RUNNING THE CODE
To run your code, click on Run/Run As/Java Application
Doing this will load a dialog box where you select your
HelloWorld.java file. Click OK
You can also click on Run/Run to do the same thing.
VIEWING THE CONSOLE
By default you should see the output of your .java program
below in the console section. If the window is not appearing click
on Window/Show View/Console
If the code has been added correctly you should see Hello World
being outputted.
HELLO WORLD OVERVIEW
1.Create a project (HelloWorld)
2.Create a class (HelloWorld)
3.Add code (System.out.println("Hello World!");
4.Run code (Run/Run As/Java Application)
These are the four basic steps to all Java programming.
Now Change the Hello World text to say “Your Name” and run
the application.
NEED MORE HELP?
Eclipse comes with its own Hello World tutorial. You can access
the tutorial from the Welcome Screen.
To get to the Welcome Screen select Help > Welcome from the
menu bar. Click the tutorials icon and then select Create a Hello
World Application.
This tutorial walks you through the entire Hello World
application building process.

More Related Content

What's hot

How to upload a powerpoint presentation to your blog
How to upload a powerpoint presentation to your blogHow to upload a powerpoint presentation to your blog
How to upload a powerpoint presentation to your blogHelenWeatherhead
 
Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8Shahed Chowdhuri
 
How to Upload a Video on Youtube and Share The Link on Aula Virtual Moodle
How to Upload a Video on Youtube and Share The Link on Aula Virtual MoodleHow to Upload a Video on Youtube and Share The Link on Aula Virtual Moodle
How to Upload a Video on Youtube and Share The Link on Aula Virtual MoodleJose Morera
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applicationssivachandra mandalapu
 
Where can i save my stuff on the web
Where can i save my stuff on the webWhere can i save my stuff on the web
Where can i save my stuff on the webcindygeddes
 
How to Use Jing - Liezel Kabigting - Simpliezel.m4v
How to Use Jing - Liezel Kabigting - Simpliezel.m4vHow to Use Jing - Liezel Kabigting - Simpliezel.m4v
How to Use Jing - Liezel Kabigting - Simpliezel.m4vLiezel Kabigting
 
Quire Guide (English ver.)
Quire Guide (English ver.)Quire Guide (English ver.)
Quire Guide (English ver.)Crystal Chen
 
Intro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twist
Intro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twistIntro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twist
Intro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twistLauren Hayward Schaefer
 
Google Drive: How to edit or view documents in offline mode
Google Drive: How to edit or view documents in offline modeGoogle Drive: How to edit or view documents in offline mode
Google Drive: How to edit or view documents in offline modeProtect and Access
 
Girl Scouts Website Designer Badge Seminar - Presentation Slides
Girl Scouts Website Designer Badge Seminar - Presentation SlidesGirl Scouts Website Designer Badge Seminar - Presentation Slides
Girl Scouts Website Designer Badge Seminar - Presentation SlidesLauren Hayward Schaefer
 
Girl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookGirl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookLauren Hayward Schaefer
 
Slick2 d and netbeans8 installation problems
Slick2 d and netbeans8 installation problemsSlick2 d and netbeans8 installation problems
Slick2 d and netbeans8 installation problemsAlejandro Colomer Everett
 
IBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxIBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxvishal choudhary
 

What's hot (20)

How to upload a powerpoint presentation to your blog
How to upload a powerpoint presentation to your blogHow to upload a powerpoint presentation to your blog
How to upload a powerpoint presentation to your blog
 
Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8
 
How to Upload a Video on Youtube and Share The Link on Aula Virtual Moodle
How to Upload a Video on Youtube and Share The Link on Aula Virtual MoodleHow to Upload a Video on Youtube and Share The Link on Aula Virtual Moodle
How to Upload a Video on Youtube and Share The Link on Aula Virtual Moodle
 
Manual
ManualManual
Manual
 
Windows phone apps
Windows phone appsWindows phone apps
Windows phone apps
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applications
 
Where can i save my stuff on the web
Where can i save my stuff on the webWhere can i save my stuff on the web
Where can i save my stuff on the web
 
How to Use Jing - Liezel Kabigting - Simpliezel.m4v
How to Use Jing - Liezel Kabigting - Simpliezel.m4vHow to Use Jing - Liezel Kabigting - Simpliezel.m4v
How to Use Jing - Liezel Kabigting - Simpliezel.m4v
 
Quire Guide (English ver.)
Quire Guide (English ver.)Quire Guide (English ver.)
Quire Guide (English ver.)
 
Intro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twist
Intro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twistIntro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twist
Intro to IBM Bluemix DevOps Services, a Workshop with a Cloudant twist
 
Google Drive: How to edit or view documents in offline mode
Google Drive: How to edit or view documents in offline modeGoogle Drive: How to edit or view documents in offline mode
Google Drive: How to edit or view documents in offline mode
 
Girl Scouts Website Designer Badge Seminar - Presentation Slides
Girl Scouts Website Designer Badge Seminar - Presentation SlidesGirl Scouts Website Designer Badge Seminar - Presentation Slides
Girl Scouts Website Designer Badge Seminar - Presentation Slides
 
Girl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - WorkbookGirl Scouts Website Designer Badge Seminar - Workbook
Girl Scouts Website Designer Badge Seminar - Workbook
 
Slick2 d and netbeans8 installation problems
Slick2 d and netbeans8 installation problemsSlick2 d and netbeans8 installation problems
Slick2 d and netbeans8 installation problems
 
Cloud hub deployment
Cloud hub deploymentCloud hub deployment
Cloud hub deployment
 
Technology
TechnologyTechnology
Technology
 
Dreamweaver & Me PPT
Dreamweaver & Me PPTDreamweaver & Me PPT
Dreamweaver & Me PPT
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
 
IBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxIBM cognos work space configuration.pptx
IBM cognos work space configuration.pptx
 
Phonegap on iphone
Phonegap on iphonePhonegap on iphone
Phonegap on iphone
 

Similar to 03 eclipse basics & hello world

Supplement J Eclipse
Supplement J EclipseSupplement J Eclipse
Supplement J Eclipsenga
 
Developing Java SWT Applications - A Starter
Developing Java SWT Applications - A StarterDeveloping Java SWT Applications - A Starter
Developing Java SWT Applications - A Startervcaselli
 
Unit2 java
Unit2 javaUnit2 java
Unit2 javamrecedu
 
Java lab1 manual
Java lab1 manualJava lab1 manual
Java lab1 manualnahalomar
 
intro-to-eclipse.pdf
intro-to-eclipse.pdfintro-to-eclipse.pdf
intro-to-eclipse.pdfSajeev P
 
Unit of competency
Unit of competencyUnit of competency
Unit of competencyloidasacueza
 
Java interview question
Java interview questionJava interview question
Java interview questionsimplidigital
 
Hello world pascal tutorial
Hello world pascal tutorialHello world pascal tutorial
Hello world pascal tutorialSerghei Urban
 
itft-Overview of java language
itft-Overview of java languageitft-Overview of java language
itft-Overview of java languageAtul Sehdev
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaAli Baba
 
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docx
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docxModule Six Assignment Guidelines and Rubric.htmlOverviewMa.docx
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docxroushhsiu
 
I phone first app ducat
I phone first app ducatI phone first app ducat
I phone first app ducatPragati Singh
 
OOPM Introduction.ppt
OOPM Introduction.pptOOPM Introduction.ppt
OOPM Introduction.pptvijay251387
 
Easy java installation & practice
Easy java installation & practiceEasy java installation & practice
Easy java installation & practiceNooria Esmaelzade
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Mohamed Essam
 
Java Intro: Unit1. Hello World
Java Intro: Unit1. Hello WorldJava Intro: Unit1. Hello World
Java Intro: Unit1. Hello WorldYakov Fain
 

Similar to 03 eclipse basics & hello world (20)

Supplement J Eclipse
Supplement J EclipseSupplement J Eclipse
Supplement J Eclipse
 
Developing Java SWT Applications - A Starter
Developing Java SWT Applications - A StarterDeveloping Java SWT Applications - A Starter
Developing Java SWT Applications - A Starter
 
Unit2 java
Unit2 javaUnit2 java
Unit2 java
 
Java lab1 manual
Java lab1 manualJava lab1 manual
Java lab1 manual
 
intro-to-eclipse.pdf
intro-to-eclipse.pdfintro-to-eclipse.pdf
intro-to-eclipse.pdf
 
Class 1 blog
Class 1 blogClass 1 blog
Class 1 blog
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
 
Java interview question
Java interview questionJava interview question
Java interview question
 
Hello world pascal tutorial
Hello world pascal tutorialHello world pascal tutorial
Hello world pascal tutorial
 
Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
 
itft-Overview of java language
itft-Overview of java languageitft-Overview of java language
itft-Overview of java language
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docx
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docxModule Six Assignment Guidelines and Rubric.htmlOverviewMa.docx
Module Six Assignment Guidelines and Rubric.htmlOverviewMa.docx
 
I phone first app ducat
I phone first app ducatI phone first app ducat
I phone first app ducat
 
Class 1
Class 1Class 1
Class 1
 
Class 1
Class 1Class 1
Class 1
 
OOPM Introduction.ppt
OOPM Introduction.pptOOPM Introduction.ppt
OOPM Introduction.ppt
 
Easy java installation & practice
Easy java installation & practiceEasy java installation & practice
Easy java installation & practice
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1
 
Java Intro: Unit1. Hello World
Java Intro: Unit1. Hello WorldJava Intro: Unit1. Hello World
Java Intro: Unit1. Hello World
 

More from Zeeshan-Shaikh

02 java programming basic
02  java programming basic02  java programming basic
02 java programming basicZeeshan-Shaikh
 
Thinking like a programmer presentation
Thinking like a programmer presentationThinking like a programmer presentation
Thinking like a programmer presentationZeeshan-Shaikh
 
Girls tech club presentation
Girls tech club presentationGirls tech club presentation
Girls tech club presentationZeeshan-Shaikh
 

More from Zeeshan-Shaikh (6)

12 installing eclipse
12   installing eclipse12   installing eclipse
12 installing eclipse
 
07 java variables
07   java variables07   java variables
07 java variables
 
06 java methods
06 java methods06 java methods
06 java methods
 
02 java programming basic
02  java programming basic02  java programming basic
02 java programming basic
 
Thinking like a programmer presentation
Thinking like a programmer presentationThinking like a programmer presentation
Thinking like a programmer presentation
 
Girls tech club presentation
Girls tech club presentationGirls tech club presentation
Girls tech club presentation
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

03 eclipse basics & hello world

  • 1. Mobile App:IT Eclipse Basics and Hello World IHS GIRLS TECH CLUB: ECLIPSE BASICS AND HELLO WORLD
  • 2. CREATING YOUR FIRST JAVA PROGRAM The first steps in creating our Hello World program is to create our Java project To do this click on File/New/Project
  • 3. CREATING YOUR FIRST JAVA PROGRAM This will open the New Project Wizard. Select Java Project and click Next>
  • 4. For the Project Name type "HelloWorld" and click Finish All other fields can remain in their default setting
  • 5. After the project has been created, you have to create a class. To do this, go to File/New/Class
  • 6. Under Source folder browse and find the src for the project you created earlier. When completed the source folder text field should read HelloWorld/src For the class name enter "HelloWorld" Make sure that the "public static void main(string[] args)" checkbox is checked. All other fields may be left as default Click Finish
  • 7. We have now created both the project and class. These steps will have to be completed every time we start a new java program. Once you create a class your .java program should load and look like this. At this time don't worry about what everything means, we will cover that as the class moves forward
  • 8. WRITING THE CODE As you have already learned, Java follows simple syntax when writing program instructions. To write the code for Hello World type the following inside the main method. Click Save
  • 9. UNDERSTANDING THE CODE If we were to break out the line of code we just wrote it would read as follows. Computer (system) output (.out) this line (println) Hello World! ("Hello World!";).
  • 10. RUNNING THE CODE To run your code, click on Run/Run As/Java Application Doing this will load a dialog box where you select your HelloWorld.java file. Click OK You can also click on Run/Run to do the same thing.
  • 11. VIEWING THE CONSOLE By default you should see the output of your .java program below in the console section. If the window is not appearing click on Window/Show View/Console If the code has been added correctly you should see Hello World being outputted.
  • 12. HELLO WORLD OVERVIEW 1.Create a project (HelloWorld) 2.Create a class (HelloWorld) 3.Add code (System.out.println("Hello World!"); 4.Run code (Run/Run As/Java Application) These are the four basic steps to all Java programming. Now Change the Hello World text to say “Your Name” and run the application.
  • 13. NEED MORE HELP? Eclipse comes with its own Hello World tutorial. You can access the tutorial from the Welcome Screen. To get to the Welcome Screen select Help > Welcome from the menu bar. Click the tutorials icon and then select Create a Hello World Application. This tutorial walks you through the entire Hello World application building process.