SlideShare a Scribd company logo
INTRODUCTION TO
PROGRAMMING WITH
JAVA
Lecture : 1
 - What is Programming ??
 Programming languages such as : C++ , C , Python ,
Java … [high . low].
 Java Technology:
Programming Language
● As a programming language, Java can create all
kinds of applications that you could create using
any conventional programming language.
Intelligent
or
Stupid
 A computer can’t understand our language It’s just understand
Something called : Binary System 0 (s) & 1 (s) .
 So we have something called Compiler {Transelator}
 What is Compiler (translator from our language to Computer’s Language ..
)
 JVM {java Virtual machine}.
 What is JDK “java Development Kit ” ?
 It’s include the Compiler , Interpreter and most tools that it’s necessary to
complier our code .
 Also it’s include the libraries and classes which we going to use like “Scanner ,
System ” .
 You can download it from .. Oracle.com
• Conversion from Decimal to binary :
For Example : 130 , 300 .
- From left to right >> with every sub process put 1 .
128
27
64
26
32
25
16
24
8
23
4
22
2
21
1
20
130 – 128 = 2
1
0 0 0 0 0 2 – 2 = 0
1
0
300 – 128 =
172 !!
 IDE’s {Editor’s}
 Note pad & any word pad
 The most Famous is “Net Beans & Eclipse”
 How to create any Project ??
1. Press file >> New Project
2. Java Application
3. Project Name
4. Main class
Note : your file will be in your workspace …
Comments ;
// just one line
Hello ,World “First Program”
 System.out,println(x); just print the value of x ..
 System.out.println(“x”) ; print litter x ..
 Sout the Tab “Short cut ”
 Println = print then make a new line .
 Print = just print .
 We can make a new Line also by n “inside quotes” .
 We can make any operation in the printing statement .
such as : 1+2 ,, 1*5 ,, an so on .
- (your name) every part in separate line by using println and n .
- print something like that“1 + 5 =” 6 .
Your turn
Any Questions ?
Printf :
 It’s a method for printing but it’s easier
 For Example
Note the Difference :
 %s >> it means you are going to Enter String Value .
 %d >> means that you are going to Enter Decimal number .
 %n = n >> to Make a new line ..
NOW LET’s Try ..
Welcome to
Java Programming!
5+5 = 10
Your turn
System.out.printf("%s %n %s %n %s %d" , "Welcome to","java Programming! " , "5+5" ,10);
//Error ;)
 For right Number
 Byte
 Short
 Int
 Long
 Decimal Number :
 Float
 Double
 Character >> char
 Boolean {true or false }
String …
Example .. Sum
Variables & identifiers .. : )
Input / Scanner
SCANNER INPUT = NEW SCANNER(SYSTEM.IN);
Comparison Operations
 When you make any comparison you will need some of these Operands :
 x == y , x >= y , x <= y , x > y , x < y .
Logic Operations : { && , || , ! }
 Examples on if Condition and logic Operations
,,
Calculator again { + , - , * , % , / }
Fail & pass { if <50 : Fail ,, }
Comparison between two numbers x , y ;
Even or Odd
Absolute
number divisible by 5 or no ..
Comparison between three Numbers
Your turn
Try it ..
Let's Play!
Imagine that you want to print your
name 50 times ..
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
System.out.println(“Ahmed Ayman ”);
…………………………….
Loops !
FOR, NESTED LOOPS
FOR STRUCTURE
FOR(INT COUNTER = 1 ; COUNTER <= 50;COUNTER++) //+1
{
//CODE SUCH AS PRINT (“AHMED AYMAN”);
}
For Structure
 for(INITIALIZATION ; CONDITION ; ITERATING STEP)
 {
 //Loop body
 }
 Examples
 Print your Name 10 Times .. Try it
 From 1 to 100 with printf .. And reverse it .
 Numbers which can divide by 5 .
 Multiplication table
 Nested Loops ,,
For ( ; ; ){
For ( ; ; ){
}
}
Multiplication Table ..
int x = 0 ;
for (int i = 1 ; i <= 12 ; i++)
{
for (int j = 1 ; j <= 12 ; j++)
{
x = i * j ;
System.out.println(i+"*"+j+"="+x );
}
System.out.println("n");
}
}
End of the text :D
Introduction to java Programming
Introduction to java Programming
Introduction to java Programming

More Related Content

What's hot

Java basic tutorial by sanjeevini india
Java basic tutorial by sanjeevini indiaJava basic tutorial by sanjeevini india
Java basic tutorial by sanjeevini indiaSanjeev Tripathi
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
Mahika Tutorials
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
Intelligo Technologies
 
Javatut1
Javatut1 Javatut1
Javatut1
desaigeeta
 
Java Tut1
Java Tut1Java Tut1
Java Tut1
guest5c8bd1
 
Synapseindia reviews.odp.
Synapseindia reviews.odp.Synapseindia reviews.odp.
Synapseindia reviews.odp.
Tarunsingh198
 
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Duckademy IT courses
 
Java tut1 Coderdojo Cahersiveen
Java tut1 Coderdojo CahersiveenJava tut1 Coderdojo Cahersiveen
Java tut1 Coderdojo Cahersiveen
Graham Royce
 
Java tut1
Java tut1Java tut1
Java tut1
Ajmal Khan
 
Tutorial java
Tutorial javaTutorial java
Tutorial java
Abdul Aziz
 
Java Notes
Java Notes Java Notes
Java Notes
Sreedhar Chowdam
 
Ch01 basic-java-programs
Ch01 basic-java-programsCh01 basic-java-programs
Ch01 basic-java-programs
James Brotsos
 
Java Tutorial
Java TutorialJava Tutorial
Java Tutorial
Singsys Pte Ltd
 
Core java
Core java Core java
Core java
Ravi varma
 
Unit I Advanced Java Programming Course
Unit I   Advanced Java Programming CourseUnit I   Advanced Java Programming Course
Unit I Advanced Java Programming Course
parveen837153
 
Introduction to java 101
Introduction to java 101Introduction to java 101
Introduction to java 101
kankemwa Ishaku
 

What's hot (19)

Java Tutorial
Java TutorialJava Tutorial
Java Tutorial
 
Java basic tutorial by sanjeevini india
Java basic tutorial by sanjeevini indiaJava basic tutorial by sanjeevini india
Java basic tutorial by sanjeevini india
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 
Javatut1
Javatut1 Javatut1
Javatut1
 
Java Tut1
Java Tut1Java Tut1
Java Tut1
 
Synapseindia reviews.odp.
Synapseindia reviews.odp.Synapseindia reviews.odp.
Synapseindia reviews.odp.
 
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...
 
Java tut1 Coderdojo Cahersiveen
Java tut1 Coderdojo CahersiveenJava tut1 Coderdojo Cahersiveen
Java tut1 Coderdojo Cahersiveen
 
Java tut1
Java tut1Java tut1
Java tut1
 
Tutorial java
Tutorial javaTutorial java
Tutorial java
 
Java Notes
Java Notes Java Notes
Java Notes
 
Ch01 basic-java-programs
Ch01 basic-java-programsCh01 basic-java-programs
Ch01 basic-java-programs
 
Core java Essentials
Core java EssentialsCore java Essentials
Core java Essentials
 
Java Tutorial
Java TutorialJava Tutorial
Java Tutorial
 
Core java
Core java Core java
Core java
 
Unit I Advanced Java Programming Course
Unit I   Advanced Java Programming CourseUnit I   Advanced Java Programming Course
Unit I Advanced Java Programming Course
 
Unit 2 Java
Unit 2 JavaUnit 2 Java
Unit 2 Java
 
Introduction to java 101
Introduction to java 101Introduction to java 101
Introduction to java 101
 

Viewers also liked

Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaASU Online
 
Java training in delhi
Java training in delhiJava training in delhi
Java training in delhi
APSMIND TECHNOLOGY PVT LTD.
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
jyoti_lakhani
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
javatrainingonline
 
Telecommunication november-20163
Telecommunication november-20163Telecommunication november-20163
Telecommunication november-20163
Akshay Agrawal
 
Project report-on-lakme
Project report-on-lakmeProject report-on-lakme
Project report-on-lakmedinesh khanna
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Veerabadra Badra
 

Viewers also liked (9)

Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java training in delhi
Java training in delhiJava training in delhi
Java training in delhi
 
Oops in c
Oops in cOops in c
Oops in c
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Telecommunication november-20163
Telecommunication november-20163Telecommunication november-20163
Telecommunication november-20163
 
Project report-on-lakme
Project report-on-lakmeProject report-on-lakme
Project report-on-lakme
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 

Similar to Introduction to java Programming

Basic computer-programming-2
Basic computer-programming-2Basic computer-programming-2
Basic computer-programming-2
lemonmichelangelo
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schools
Dan Bowen
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
Anonymous9etQKwW
 
Begin with c++ Fekra Course #1
Begin with c++ Fekra Course #1Begin with c++ Fekra Course #1
Begin with c++ Fekra Course #1
Amr Alaa El Deen
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
nhomz
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
DRVaibhavmeshram1
 
Problem solving using computers - Chapter 1
Problem solving using computers - Chapter 1 Problem solving using computers - Chapter 1
Problem solving using computers - Chapter 1
To Sum It Up
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
Rohit Shrivastava
 
Magic 8 ball putting it all together
Magic 8 ball  putting it all togetherMagic 8 ball  putting it all together
Magic 8 ball putting it all together
geekinlibrariansclothing
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
vikram mahendra
 
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Chris Adamson
 
Introduction to programming - class 2
Introduction to programming - class 2Introduction to programming - class 2
Introduction to programming - class 2
Paul Brebner
 
Java Tutorial: Part 1. Getting Started
Java Tutorial: Part 1. Getting StartedJava Tutorial: Part 1. Getting Started
Java Tutorial: Part 1. Getting Started
Svetlin Nakov
 
Qbasic tutorial
Qbasic tutorialQbasic tutorial
Qbasic tutorial
jovelleluzon
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
ysolanki78
 
Basic programming
Basic programmingBasic programming
Basic programming
Nicole Danielle Mallari
 
Week1 programming challenges
Week1 programming challengesWeek1 programming challenges
Week1 programming challenges
Dhanu Srikar
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The Basics
Ranel Padon
 
Assembly Language Programming
Assembly Language ProgrammingAssembly Language Programming
Assembly Language Programming
Niropam Das
 

Similar to Introduction to java Programming (20)

Basic computer-programming-2
Basic computer-programming-2Basic computer-programming-2
Basic computer-programming-2
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schools
 
lecture 2.pptx
lecture 2.pptxlecture 2.pptx
lecture 2.pptx
 
Begin with c++ Fekra Course #1
Begin with c++ Fekra Course #1Begin with c++ Fekra Course #1
Begin with c++ Fekra Course #1
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
 
Problem solving using computers - Chapter 1
Problem solving using computers - Chapter 1 Problem solving using computers - Chapter 1
Problem solving using computers - Chapter 1
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
Foundations of Programming Part I
Foundations of Programming Part IFoundations of Programming Part I
Foundations of Programming Part I
 
Magic 8 ball putting it all together
Magic 8 ball  putting it all togetherMagic 8 ball  putting it all together
Magic 8 ball putting it all together
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
 
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
 
Introduction to programming - class 2
Introduction to programming - class 2Introduction to programming - class 2
Introduction to programming - class 2
 
Java Tutorial: Part 1. Getting Started
Java Tutorial: Part 1. Getting StartedJava Tutorial: Part 1. Getting Started
Java Tutorial: Part 1. Getting Started
 
Qbasic tutorial
Qbasic tutorialQbasic tutorial
Qbasic tutorial
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 
Basic programming
Basic programmingBasic programming
Basic programming
 
Week1 programming challenges
Week1 programming challengesWeek1 programming challenges
Week1 programming challenges
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The Basics
 
Assembly Language Programming
Assembly Language ProgrammingAssembly Language Programming
Assembly Language Programming
 

Recently uploaded

Burning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdfBurning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdf
kkirkland2
 
Tom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issueTom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issue
amekonnen
 
2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf
Frederic Leger
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AwangAniqkmals
 
Gregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics PresentationGregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics Presentation
gharris9
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Dutch Power
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Dutch Power
 
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsCollapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Rosie Wells
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
SkillCertProExams
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
gharris9
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 

Recently uploaded (19)

Burning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdfBurning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdf
 
Tom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issueTom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issue
 
2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
 
Gregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics PresentationGregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics Presentation
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
 
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsCollapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 

Introduction to java Programming

  • 2.
  • 3.
  • 4.  - What is Programming ??  Programming languages such as : C++ , C , Python , Java … [high . low].  Java Technology: Programming Language ● As a programming language, Java can create all kinds of applications that you could create using any conventional programming language.
  • 6.  A computer can’t understand our language It’s just understand Something called : Binary System 0 (s) & 1 (s) .  So we have something called Compiler {Transelator}  What is Compiler (translator from our language to Computer’s Language .. )  JVM {java Virtual machine}.  What is JDK “java Development Kit ” ?  It’s include the Compiler , Interpreter and most tools that it’s necessary to complier our code .  Also it’s include the libraries and classes which we going to use like “Scanner , System ” .  You can download it from .. Oracle.com
  • 7. • Conversion from Decimal to binary : For Example : 130 , 300 . - From left to right >> with every sub process put 1 . 128 27 64 26 32 25 16 24 8 23 4 22 2 21 1 20 130 – 128 = 2 1 0 0 0 0 0 2 – 2 = 0 1 0 300 – 128 = 172 !!
  • 8.
  • 9.  IDE’s {Editor’s}  Note pad & any word pad  The most Famous is “Net Beans & Eclipse”
  • 10.
  • 11.
  • 12.  How to create any Project ?? 1. Press file >> New Project 2. Java Application 3. Project Name 4. Main class Note : your file will be in your workspace …
  • 13. Comments ; // just one line
  • 14. Hello ,World “First Program”  System.out,println(x); just print the value of x ..  System.out.println(“x”) ; print litter x ..  Sout the Tab “Short cut ”
  • 15.  Println = print then make a new line .  Print = just print .  We can make a new Line also by n “inside quotes” .  We can make any operation in the printing statement . such as : 1+2 ,, 1*5 ,, an so on . - (your name) every part in separate line by using println and n . - print something like that“1 + 5 =” 6 . Your turn
  • 17. Printf :  It’s a method for printing but it’s easier  For Example Note the Difference :
  • 18.  %s >> it means you are going to Enter String Value .  %d >> means that you are going to Enter Decimal number .  %n = n >> to Make a new line .. NOW LET’s Try .. Welcome to Java Programming! 5+5 = 10 Your turn
  • 19. System.out.printf("%s %n %s %n %s %d" , "Welcome to","java Programming! " , "5+5" ,10); //Error ;)
  • 20.  For right Number  Byte  Short  Int  Long  Decimal Number :  Float  Double  Character >> char  Boolean {true or false } String … Example .. Sum Variables & identifiers .. : )
  • 21.
  • 22. Input / Scanner SCANNER INPUT = NEW SCANNER(SYSTEM.IN);
  • 23.
  • 24. Comparison Operations  When you make any comparison you will need some of these Operands :  x == y , x >= y , x <= y , x > y , x < y . Logic Operations : { && , || , ! }
  • 25.  Examples on if Condition and logic Operations ,, Calculator again { + , - , * , % , / } Fail & pass { if <50 : Fail ,, } Comparison between two numbers x , y ; Even or Odd Absolute number divisible by 5 or no .. Comparison between three Numbers Your turn
  • 28.
  • 29. Imagine that you want to print your name 50 times .. System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); System.out.println(“Ahmed Ayman ”); …………………………….
  • 30.
  • 31. Loops ! FOR, NESTED LOOPS FOR STRUCTURE FOR(INT COUNTER = 1 ; COUNTER <= 50;COUNTER++) //+1 { //CODE SUCH AS PRINT (“AHMED AYMAN”); }
  • 32. For Structure  for(INITIALIZATION ; CONDITION ; ITERATING STEP)  {  //Loop body  }  Examples  Print your Name 10 Times .. Try it  From 1 to 100 with printf .. And reverse it .  Numbers which can divide by 5 .  Multiplication table
  • 33.  Nested Loops ,, For ( ; ; ){ For ( ; ; ){ } }
  • 34. Multiplication Table .. int x = 0 ; for (int i = 1 ; i <= 12 ; i++) { for (int j = 1 ; j <= 12 ; j++) { x = i * j ; System.out.println(i+"*"+j+"="+x ); } System.out.println("n"); } }
  • 35. End of the text :D

Editor's Notes

  1. المربع الازرق دا بيت واحد صاحبك و انت متفق معاه تقابله بعربييتك و تروحوا الكلية سوا و انت جاى مع اتجاه السهم .. بس لما وصلت عند البيت اتصلت بيه و لقيته لسا بيلبس و منزلش و المشكلة الأكبر إن الطريق حارة واحدة ومش هينفع تركن تستناه علشان متوقفش الشارع .. هتعمل ايه ؟!