Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. public class Conventer {
  2.     public static String converTemp(int temper, char converTo) {
  3.         if (converTo == 'F') {
  4.             return temper + "°F";
  5.         } else if (converTo == 'C'){
  6.             return temper + "°C";
  7.         }
  8.         return "F or C not found.";
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement