SlideShare une entreprise Scribd logo
1  sur  38
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

Contenu connexe

Tendances (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
 

En vedette (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
 

Similaire à Introduction to java Programming

Basic computer-programming-2
Basic computer-programming-2Basic computer-programming-2
Basic computer-programming-2lemonmichelangelo
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schoolsDan Bowen
 
Begin with c++ Fekra Course #1
Begin with c++ Fekra Course #1Begin with c++ Fekra Course #1
Begin with c++ Fekra Course #1Amr 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 Tutorialnhomz
 
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
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONvikram 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 2Paul Brebner
 
Java Tutorial: Part 1. Getting Started
Java Tutorial: Part 1. Getting StartedJava Tutorial: Part 1. Getting Started
Java Tutorial: Part 1. Getting StartedSvetlin Nakov
 
Week1 programming challenges
Week1 programming challengesWeek1 programming challenges
Week1 programming challengesDhanu Srikar
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The BasicsRanel Padon
 
Assembly Language Programming
Assembly Language ProgrammingAssembly Language Programming
Assembly Language ProgrammingNiropam Das
 

Similaire à 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
 

Dernier

WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )Pooja Nehwal
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxNikitaBankoti2
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Vipesco
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Chameera Dedduwage
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...Sheetaleventcompany
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...henrik385807
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
Mathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMoumonDas2
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyPooja Nehwal
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Delhi Call girls
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesPooja Nehwal
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrsaastr
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Pooja Nehwal
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AITatiana Gurgel
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Hasting Chen
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 

Dernier (20)

WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
Mathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptxMathematics of Finance Presentation.pptx
Mathematics of Finance Presentation.pptx
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
 
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara ServicesVVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
VVIP Call Girls Nalasopara : 9892124323, Call Girls in Nalasopara Services
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStrSaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
SaaStr Workshop Wednesday w: Jason Lemkin, SaaStr
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
 
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AIMicrosoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 

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

Notes de l'éditeur

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