Daily Archives: December 15, 2019

Question 2

Rewrite 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”); 2. Rewrite the following loop using for loop:               while (true) … Continue reading

Posted in Term 1 | Leave a comment