✏️ Explanatory Question

Convert the following if else if construct into switch case

if( var==1)
    System.out.println("good");
else if(var==2)
    System.out.println("better");
else if(var==3)
    System.out.println("best");
else
    System.out.println("invalid");

👁 96 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Answer not available right now.