Spaces:
Sleeping
Sleeping
Download Calculator.java from Vidhikoul/unit-test-env: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/Vidhikoul/unit-test-env/resolve/main/Calculator.java
- Command line
-
hf download hf://spaces/Vidhikoul/unit-test-env/Calculator.java
-
curl -L -o Calculator.java https://huggingface.co/spaces/Vidhikoul/unit-test-env/resolve/main/Calculator.java
580 Bytes
| // 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.*; |