Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public final String getAgeString()
  2. {
  3. if (this.age < 3) {
  4. return "young";
  5. }
  6. if (this.age < 8) {
  7. return "adolescent";
  8. }
  9. if (this.age < 12) {
  10. return "mature";
  11. }
  12. if (this.age < 30) {
  13. return "aged";
  14. }
  15. if (this.age < 40) {
  16. return "old";
  17. }
  18. return "venerable";
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement