Okay in Java, we also have a switch statement. So let's say I have cha cha maybe I gave you some great sauce, I'm back. Okay, let's say I gave you a grid. So this is a character, variable, character, data type. And then we have these switch. k switch and let's see.
Case. A. printer System dot out dot print. ly put in a go. Let's see. case B. When System dot out dot println lie ah okay maybe fair case see System dot out dot print line and I see APU try harder for that great I should have the D FOSS demon the font means the L steamin gay D file that is na r dot pre okay say try ah Try less a more harder okay.
I see run this code now I have adisa statement print out so if I want to let's see made this statement correct or made this program correct then I need to add in a break statement here the break and then here I also need a break Andy for a cane also a yeah now let's see. I run the project he'll give me If I change to be it will give me the fair. If I change to see it will give me the try harder. If I change to let's say let's say D day will give me the default one try more harder okay. This is the system. So, he is I will say is like the SD mode so, so ah if gray is a, then printer good.
If gray is B, then print this affair. If greatest C then print these try harder for better gray or else then we print these try more harder. So, this is like the ethos, the fan statements inside a eval statement. So a C statement or these c saying case statement is actually another way of writing the if statement.