Add conditionals in Java (#1731)
* Update 102-conditionals.md I've added content in the roadmap documentation to study conditionals in Java. * Update content/roadmaps/110-java/content/100-java-fundamentals/102-conditionals.md Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>pull/1745/head
parent
43794c8d0f
commit
9ff95409a9
1 changed files with 13 additions and 1 deletions
@ -1 +1,13 @@ |
||||
# Conditionals |
||||
# Conditionals |
||||
|
||||
Java has the following conditional statements: |
||||
|
||||
* Use `if` to specify a block of code to be executed, if a specified condition is true |
||||
* Use `else` to specify a block of code to be executed if the same condition is false |
||||
* Use `else if` to specify a new condition to test; if the first condition is false |
||||
* Use `switch` to specify many alternative blocks of code to be executed |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.educative.io/answers/what-are-conditional-statements-in-programming'>What are Conditional statements?</BadgeLink> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.javatpoint.com/java-if-else'>Conditionals in Java</BadgeLink> |
||||
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=YPK6NYMJt_A'>Conditionals in Java</BadgeLink> |
||||
|
Loading…
Reference in new issue