Skip to content

Commit b9b0d56

Browse files
committed
Update if-else-statement.mdx
1 parent 56c3639 commit b9b0d56

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

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)