lots of exercises in java... from https://github.com/exercism/java

Sieve.java 333B

123456789101112
  1. import java.util.List;
  2. class Sieve {
  3. Sieve(int maxPrime) {
  4. throw new UnsupportedOperationException("Delete this statement and provide your own implementation.");
  5. }
  6. List<Integer> getPrimes() {
  7. throw new UnsupportedOperationException("Delete this statement and provide your own implementation.");
  8. }
  9. }