SlideShare a Scribd company logo
1 of 12
ENG. AHMED EL-
ENG. AHMED ELBADAWY - FALL 2016
2
 WHAT IS PROGRAMMING ?
 LEARNING PROGRAMMING IS A CHALLENGE
 COMPUTER PROGRAM STRUCTURE
 JAVA PROGRAM LIFE CYCLE
 FIRST JAVA PROGRAM (HELLO JAVA)
ENG. AHMED ELBADAWY - FALL 2016
3
 It’s a set of instructions that were written by a
programmer that tells a computer what to do.
 Computer programs come in all shapes and sizes, from
the very simplest ones we’ll look at below (the “Hello,
World!” program is the most well-known) to extremely
large, integrated systems with multiple functionality
controlling factories, big business accounts, banks,
world markets, scientific research, etc. etc.
ENG. AHMED ELBADAWY - FALL 2016
4
 Why is this? Because you basically have to learn
everything at once.
 You can’t write a program that does anything without
knowing something at least about a lot of things, any
more than you should drive a car without knowing about
the accelerator, brake, clutch, gears, road rules,
indicators. . .You can find a nice place to practice driving
where you have to worry about as few of these things as
possible, but you can’t get going without sitting in the
driver’s seat and trying it—so let’s get started!
ENG. AHMED ELBADAWY - FALL 2016http://www.shutterstock.com/pic-65752078/stock-photo--d-
rendering-work-flows-concept-input-process-output-isolated-on-white-
background.html?src=LfatOa6qMllGAEym0FJ7FA-1-36
5
 Simply computer programs consists of:
ENG. AHMED ELBADAWY - FALL 2016
6
 There are 4 main processes in the java program life
cycle
WRITE
CODE
SAVE
CODE
COMPILE
CODE
RUN OR
EXECUTE
ENG. AHMED ELBADAWY - FALL 2016 http://searchsoftwarequality.techtarget.com/definition/integrated-
development-environment
7
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
THERE ARE TWO WAYS
TO WRITE A JAVA
PROGRAM:
1- TEXT EDITOR
(NOTEPAD).
2- JAVA IDE
(JCRAETOR).An integrated development
environment (IDE) is a programming
environment that has been packaged as
an application program, typically
consisting of a code editor, a compiler, a
debugger, and a graphical user
interface (GUI) builder. The IDE may
be a standalone application or may be
included as part of one or more existing
and compatible applications.
ENG. AHMED ELBADAWY - FALL 2016
8
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
Saving java code has
two very important
rules:
1- you have to save the
file with the same class
(java program) name or
identifier.
2- the file extension must
be file name.java
ENG. AHMED ELBADAWY - FALL 2016
9
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
A compiler is a special
program that processes
statements written in a
particular programming
language and turns them into
machine language or "code"
that a computer's
processor uses
(http://whatis.techtarget.com/d
efinition/compiler)
So generally, compiling
code means translating the
code instruction to the
language that the computer
can understand
(will discuss later in lecture 3)
ENG. AHMED ELBADAWY - FALL 2016
10
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
The computer processor
executes the program
instructions then the user gets
the output
ENG. AHMED ELBADAWY - FALL 2016
11
public class firstlab
{
public static void main (String [] args)
{
System.out.print("HELLO JAVA");
}
}
References
ENG. AHMED ELBADAWY - FALL 2016
12
 Introduction to Programming, Michael
Charleston, sydney.edu.au

More Related Content

Similar to Programming I lecture 1

Android reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skypeAndroid reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skypeMário Almeida
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingPVS-Studio
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
USES of java.pptx
USES of java.pptxUSES of java.pptx
USES of java.pptxXanGwaps
 
Review Paper on Online Java Compiler
Review Paper on Online Java CompilerReview Paper on Online Java Compiler
Review Paper on Online Java CompilerIRJET Journal
 
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...marjoramg
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDEpawannile
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDEpawannile1
 
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
 
Journey to the center of the software industry world
Journey to the center of the software industry worldJourney to the center of the software industry world
Journey to the center of the software industry worldAmr Salah
 
Integrate Shindig with Joomla
Integrate Shindig with JoomlaIntegrate Shindig with Joomla
Integrate Shindig with JoomlaAnand Sharma
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)mafffffe19
 
Functional Requirements Of System Requirements
Functional Requirements Of System RequirementsFunctional Requirements Of System Requirements
Functional Requirements Of System RequirementsLaura Arrigo
 
Software Development Standard Operating Procedure
Software Development Standard Operating Procedure Software Development Standard Operating Procedure
Software Development Standard Operating Procedure rupeshchanchal
 
Unit 1 vb study_materials
Unit 1 vb study_materialsUnit 1 vb study_materials
Unit 1 vb study_materialsgayaramesh
 

Similar to Programming I lecture 1 (20)

Android reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skypeAndroid reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skype
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code logging
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Codename one
Codename oneCodename one
Codename one
 
USES of java.pptx
USES of java.pptxUSES of java.pptx
USES of java.pptx
 
Java script hello world
Java script hello worldJava script hello world
Java script hello world
 
Review Paper on Online Java Compiler
Review Paper on Online Java CompilerReview Paper on Online Java Compiler
Review Paper on Online Java Compiler
 
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDE
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDE
 
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
 
Journey to the center of the software industry world
Journey to the center of the software industry worldJourney to the center of the software industry world
Journey to the center of the software industry world
 
Integrate Shindig with Joomla
Integrate Shindig with JoomlaIntegrate Shindig with Joomla
Integrate Shindig with Joomla
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
 
Functional Requirements Of System Requirements
Functional Requirements Of System RequirementsFunctional Requirements Of System Requirements
Functional Requirements Of System Requirements
 
Software Development Standard Operating Procedure
Software Development Standard Operating Procedure Software Development Standard Operating Procedure
Software Development Standard Operating Procedure
 
Teamwork Presentation
Teamwork PresentationTeamwork Presentation
Teamwork Presentation
 
Spring Framework Rohit
Spring Framework RohitSpring Framework Rohit
Spring Framework Rohit
 
Unit 1 vb study_materials
Unit 1 vb study_materialsUnit 1 vb study_materials
Unit 1 vb study_materials
 

Recently uploaded

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Programming I lecture 1

  • 2. ENG. AHMED ELBADAWY - FALL 2016 2  WHAT IS PROGRAMMING ?  LEARNING PROGRAMMING IS A CHALLENGE  COMPUTER PROGRAM STRUCTURE  JAVA PROGRAM LIFE CYCLE  FIRST JAVA PROGRAM (HELLO JAVA)
  • 3. ENG. AHMED ELBADAWY - FALL 2016 3  It’s a set of instructions that were written by a programmer that tells a computer what to do.  Computer programs come in all shapes and sizes, from the very simplest ones we’ll look at below (the “Hello, World!” program is the most well-known) to extremely large, integrated systems with multiple functionality controlling factories, big business accounts, banks, world markets, scientific research, etc. etc.
  • 4. ENG. AHMED ELBADAWY - FALL 2016 4  Why is this? Because you basically have to learn everything at once.  You can’t write a program that does anything without knowing something at least about a lot of things, any more than you should drive a car without knowing about the accelerator, brake, clutch, gears, road rules, indicators. . .You can find a nice place to practice driving where you have to worry about as few of these things as possible, but you can’t get going without sitting in the driver’s seat and trying it—so let’s get started!
  • 5. ENG. AHMED ELBADAWY - FALL 2016http://www.shutterstock.com/pic-65752078/stock-photo--d- rendering-work-flows-concept-input-process-output-isolated-on-white- background.html?src=LfatOa6qMllGAEym0FJ7FA-1-36 5  Simply computer programs consists of:
  • 6. ENG. AHMED ELBADAWY - FALL 2016 6  There are 4 main processes in the java program life cycle WRITE CODE SAVE CODE COMPILE CODE RUN OR EXECUTE
  • 7. ENG. AHMED ELBADAWY - FALL 2016 http://searchsoftwarequality.techtarget.com/definition/integrated- development-environment 7 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E THERE ARE TWO WAYS TO WRITE A JAVA PROGRAM: 1- TEXT EDITOR (NOTEPAD). 2- JAVA IDE (JCRAETOR).An integrated development environment (IDE) is a programming environment that has been packaged as an application program, typically consisting of a code editor, a compiler, a debugger, and a graphical user interface (GUI) builder. The IDE may be a standalone application or may be included as part of one or more existing and compatible applications.
  • 8. ENG. AHMED ELBADAWY - FALL 2016 8 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E Saving java code has two very important rules: 1- you have to save the file with the same class (java program) name or identifier. 2- the file extension must be file name.java
  • 9. ENG. AHMED ELBADAWY - FALL 2016 9 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses (http://whatis.techtarget.com/d efinition/compiler) So generally, compiling code means translating the code instruction to the language that the computer can understand (will discuss later in lecture 3)
  • 10. ENG. AHMED ELBADAWY - FALL 2016 10 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E The computer processor executes the program instructions then the user gets the output
  • 11. ENG. AHMED ELBADAWY - FALL 2016 11 public class firstlab { public static void main (String [] args) { System.out.print("HELLO JAVA"); } }
  • 12. References ENG. AHMED ELBADAWY - FALL 2016 12  Introduction to Programming, Michael Charleston, sydney.edu.au