Java Tutorial For Beginners 10 – switch Statement in Java

///Java Tutorial For Beginners 10 – switch Statement in Java

Java Tutorial For Beginners 10 – switch Statement in Java

FavoriteLoadingAdd to favorites

Java is a widely used robust technology. According to Estimates , 3 billion devices run java.

Java468x60

This Java Tutorial course is aimed at complete beginners to the subject. For those who have no programming experience or those who have limited knowledge of Java. We get you up and running and will give you the skills you need to master the Java programming language.
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –

★★★ Follow ★★★
My Website –

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

java switch string
java switch enum
java switch example
java switch multiple case
java switch char
java switch string example
java switch case example
java switch int

source

By |2019-12-01T00:15:02+00:00December 1st, 2019|Java Video Tutorials|21 Comments

21 Comments

  1. Haiku Sage December 1, 2019 at 12:15 am - Reply

    Would creating separate packages for each lessons break anything?

  2. Sid Reggie December 1, 2019 at 12:15 am - Reply

    you good sir should make your way to the nearest hardware store and acquire batteries for your smoke detector
    cheerio!

  3. Miklós Király December 1, 2019 at 12:15 am - Reply

    My only question: did you change that battery in the smoke/CO2 sensor that was beeping in the background? 😀

  4. Will December 1, 2019 at 12:15 am - Reply

    ve vill print de messij "beri goot"

  5. Jim Vann December 1, 2019 at 12:15 am - Reply

    I keep pausing to make sure it’s not MY smoke detector!!!

  6. Pardeep Kumar December 1, 2019 at 12:15 am - Reply

    Ooosm teaching sir ji i like

  7. Sid L December 1, 2019 at 12:15 am - Reply

    nice explanation with example..

    Cheers,
    https://www.flowerbrackets.com/switch-statement-in-java/

  8. Vrushabh Chougale December 1, 2019 at 12:15 am - Reply

    Sir how to do if we want a set or range of values

  9. norahalhajri December 1, 2019 at 12:15 am - Reply

    you are amazing thanks

  10. Ruzain Patel December 1, 2019 at 12:15 am - Reply

    Correction 1:34
    The expression can be a String as well.

  11. Rohan Vlogs December 1, 2019 at 12:15 am - Reply

    The calculator program 😀

    package first;
    import java.util.Scanner;
    public class MyProgram{
    public static void main(String[] args) {
    System.out.println("**********Welcome To My Calculator Program**********");
    System.out.println("*****************Designed By Rohan*****************");
    System.out.print("Please enter first number: ");
    Scanner a = new Scanner(System.in);
    double x = a.nextDouble();
    System.out.print("Please enter second number: ");
    Scanner b = new Scanner(System.in);
    double y = b.nextDouble();
    System.out.println("Please Enter The Operation Note: +, -, *, /, %");
    Scanner c = new Scanner(System.in);
    String z = c.nextLine();
    double ans=0;
    switch (z) {
    case "+":
    ans = x + y;
    break;
    case "-":
    ans = x – y;
    break;
    case "*":
    ans = x*y;
    break;
    case "/":
    ans = x/y;
    break;
    case "%":
    ans = x%y;
    break;
    default:
    System.out.println("The operaton you entered is invalid");
    break;
    }
    System.out.println("The Required answer is = " + ans);
    }
    }

    Do not panic it is very simple!

  12. Azvern Dias December 1, 2019 at 12:15 am - Reply

    Brake…not this one but this one…break! XD

  13. Michal December 1, 2019 at 12:15 am - Reply

    Hmm but can you make a case for example between 80 and 100 ? Supposing either the score will be 84/87/89 etc the output will be the same ?

  14. Smart Programming December 1, 2019 at 12:15 am - Reply

    nice explanation sir, thanks

  15. Sanoop December 1, 2019 at 12:15 am - Reply

    Tip: Instead of typingSystem.out.println, just type "syso" and ctrl+space+enter. Its a shortcut key available in Eclipse

  16. HUSSAIN ASHFAQUE December 1, 2019 at 12:15 am - Reply

    What my code is saying Syntex error? else statement.
    package youtube;

    public class Lesson8 {

    public static void main(String[] args) {
    // TODO Auto-generated method stub
    int subject1 = 40;
    int subject2 = 50;

    if ((subject1 >= 30) && (subject2 >= 30));
    {
    System.out.println("The coditon is true");
    }
    else // else hase red line and saying syntex error.
    {
    System.out.println("The Condition is false");
    }

    }
    }

  17. bcut December 1, 2019 at 12:15 am - Reply
  18. Subhajit Mallick December 1, 2019 at 12:15 am - Reply

    Sir what to do when i am putting any value between 90 to 100 and want to keep SAME GRADE.

  19. Business Boss December 1, 2019 at 12:15 am - Reply

    If we want to check out condtion that in between 80 to 70 that shows "good" then what we use compression operator or something else ?

  20. Chaitanya Teja December 1, 2019 at 12:15 am - Reply

    AS A BEGINNER IT WAS SO DIFFICULT TO READ TEXT BOOK…YOU MADE MY LIFE EASY

  21. Aravind Basmi December 1, 2019 at 12:15 am - Reply

    I like your videos very much. Could you please do a program with entering the value of score as used before in Scanner scan and i need the video with more explanation of Scanner scan. Thank you very much.

Leave A Comment

*