Ad
  • Default User Avatar

    It's good, but I would also recommend inserting "return new int[] ..." after each "if statement" so that the computer does't have to check the remaining "else if" e.g. humanYears == 1, computer checks the first "if" and then program terminates.

    What's more, remember about error handling - in case user gives humanYears < 1.