Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Conditional Statements

No description
by

Mary Clarino

on 24 April 2017

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Conditional Statements

Conditional Statements
Types of Conditional Statements
2. Switchcase Statement
1. If-else statement
END
Thank you for listening! :)
1. If-else statement
2. Switch case statement
if
crush
says
yes
then
she will be his girlfriend :)
Else
his heart will get broken
yes
1
no 0
if(
crush
==
1
){
System.out.println
("
She will be his girlfriend! :)
");
}
else{
System.out.println
(
"His heart will get broken! :("
);
}
if crush says 1:
She will be his girlfriend :)
else:
His heart will get broken! :(

Case 1: James

Case 2: Alden

Case 3: Enrique

Default: Jollibee guy

switch (
crush
) {

case 1: System.out.println("James");

break;

case 2: System.out.println("Alden");

break;

case 3: System.out.println("Enrique");

break;
default: System.out.println("Jollibee Guy");
}
Full transcript