Find Celcius and Fahrenheit using switchcase in Java.


In this example program we use to import package util & io

util package provide us Scanner class for input value from keyboard of any data type.

io package provide Exception for input output using throws at main method signature.

we also  used type casting   (char) System.in.read()  get First character of given String input method  System.in.read()


Program solution for Temprature

Output of java program

switch case in Java program
switch case in Java program with util package for Scanner class and io package for throws Exception

 

(Visited 323 times, 1 visits today)

1 thought on “Find Celcius and Fahrenheit using switchcase in Java.

  1. Nice bro, found it intresting as well as informative. It helped me out with my problem. So, once again thnx.

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image