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

SpaceAge.java 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. class SpaceAge {
  2. SpaceAge(double seconds) {
  3. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  4. }
  5. double getSeconds() {
  6. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  7. }
  8. double onEarth() {
  9. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  10. }
  11. double onMercury() {
  12. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  13. }
  14. double onVenus() {
  15. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  16. }
  17. double onMars() {
  18. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  19. }
  20. double onJupiter() {
  21. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  22. }
  23. double onSaturn() {
  24. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  25. }
  26. double onUranus() {
  27. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  28. }
  29. double onNeptune() {
  30. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  31. }
  32. }