File size: 580 Bytes
5916e92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// public class Calculator {
//     public int add(int a, int b) {
//         return a + b;
//     }

//     public boolean isPalindrome(String s) {
//         String clean = s.toLowerCase().replace(" ", "");
//         String reversed = new StringBuilder(clean).reverse().toString();
//         return clean.equals(reversed);
//     }

//     public double celsiusToFahrenheit(double c) {
//         return c * 9.0 / 5.0 + 32;
//     }
// }


// // Write me a sample test class for the Calculator class using JUnit.

// import org.junit.Test;
// import static org.junit.Assert.*;