Skip to content

Commit a18c229

Browse files
authored
Merge pull request #44 from javaistic/update-if-else-statement-docs
Update if else statement docs
2 parents 92e46ce + 8f11e46 commit a18c229

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

src/img/docs/wroking-of-if-else-statement.svg

Lines changed: 1 addition & 0 deletions
Loading

src/img/docs/wroking-of-java-if-statement.svg

Lines changed: 1 addition & 0 deletions
Loading

src/img/docs/wroking-of-java-statement.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/pages/docs/if-else-statement.mdx

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Here, `condition` is a boolean expression such as `age >= 18`.
3737
<NextImage
3838
className="object-cover object-center shadow-xl"
3939
alt="Working of Java if statement"
40-
src={require('@/img/docs/wroking-of-java-statement.svg').default}
41-
width={1145}
42-
height={620}
40+
src={require('@/img/docs/wroking-of-java-if-statement.svg').default}
41+
width={1141}
42+
height={596}
4343
layout="responsive"
44-
blurDataURL={require('@/img/docs/wroking-of-java-statement.svg').default}
44+
blurDataURL={require('@/img/docs/wroking-of-java-if-statement.svg').default}
4545
placeholder="blur"
4646
loading="lazy"
4747
quality={100}
@@ -126,8 +126,26 @@ else {
126126
Here, the program will do one task (codes inside if block) if the condition is true and another task (codes inside else block) if the condition is false.
127127

128128
## How the if...else statement works?
129-
If the condition is true, the code inside the if block is executed, otherwise, code inside the else block is executed
130-
Working of Java if-else statements
129+
130+
<div>
131+
132+
<NextImage
133+
className="object-cover object-center shadow-xl"
134+
alt="Working of Java if statement"
135+
src={require('@/img/docs/wroking-of-if-else-statement.svg').default}
136+
width={1314}
137+
height={690}
138+
layout="responsive"
139+
blurDataURL={require('@/img/docs/wroking-of-if-else-statement.svg').default}
140+
placeholder="blur"
141+
loading="lazy"
142+
quality={100}
143+
/>
144+
145+
<p align="center" className="text-base text-gray-600 font-medium">Working of Java if-else statements</p>
146+
147+
</div>
148+
131149

132150
### Example 3: Java if...else Statement
133151

0 commit comments

Comments
 (0)