File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,42 @@ Decision Making in programming is similar to decision-making in real life. In pr
425
425
426
426
Note : Proper Code is given in the file [ decision.java] ( https://github.com/ackwolver335/Java-Coder/blob/main/decision1.java ) Click to go on it.
427
427
428
+ ### Here are some code examples of Decision Making Statements :
429
+
430
+ ** If Statements**
431
+
432
+ ```
433
+ class Class_name{
434
+ public static void main(String[] args){
435
+
436
+ // Type 1
437
+ if(condition){
438
+ // code here
439
+ }
440
+
441
+ // Type 2
442
+ if(condition1){
443
+ // code here
444
+ }
445
+ else{ // another condition here
446
+ // opposite code block here
447
+ }
448
+
449
+ // Type 3
450
+ if(first_condition){
451
+ // code here
452
+ }
453
+ else if(second_condition){
454
+ // code here
455
+ }
456
+ else{
457
+ // opposite condition code here
458
+ }
459
+
460
+ }
461
+ }
462
+ ```
463
+
428
464
### Social Media Links :
429
465
430
466
- [ Instagram Page] ( https://www.instagram.com/coding.needs/ )
You can’t perform that action at this time.
0 commit comments