Convert if-else to switch case, switch case to if-else, if-else to ternary operator, ternary to if-else, switch to ternary and ternary operator to switch
Don't fear with programming, We make programming easy to understand.
Hello Students, Most Welcome to YP Computer classes (Key To Creative Learning)
I'm Yogesh Verma, your Computer Programming Teacher.
In this video, We are going to learn 6 conversions
1. if-else to switch case
2. switch case to if-else
3. switch case to ternary operator
4. ternary to switch case
5. ternary to if-else
6. if-else to ternary operator
((((((
There is a exercise question for you to practice the conversions.
if(a==1)
System.out.print("Hello Java");
else if(a==2 || a==3)
System.out.print("Programming");
else
System.out.print("Bye Java");
Convert this code to switch and ternary operator
if you want answer of this question, you in ask me in you tube comment box. I'll surely reply.
))))))
YP COMPUTER CLASSES commits to upload one or two videos every week. So stay connected with Us. I promise you to give meaning full information about programming languages. I want to make you strong in programming languages. These all programming languages are very easy to learn if you learn programming languages step by step.
If you are facing any problem while learning programming you can contact me on whatsApp number 7798161873 and you can subscribe my channel
/ ypcomputerclasses
Click here to go to play list for icse computer class 9
• Java Series Program using 'For' loop | Nes...
Click here to go to play list for icse computer class 10
• Lecture 14 - Bubble Sort in Java | Java Bu...
Thank you for watching this video. Please like👍, Share and Subscribe my Channel.
Don't forget to hit Bell Icon🔔. Do Comments👨💻👩💻 if you like and any doubts in your minds.
Happy Creative Learning👩💻👨💻
#YPComputerClasses
#JavaProgramming