1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Java

Connected

Exercise

Multiply and prosper

Your job description changed! Now you have flexible hours and days per week. You know you can build on that squareOf5() you built earlier to easily get the answer.

Instructions

100 XP
  • Give n1 and n2 their proper type.
  • Use the appropriate operator for multiplication between n1 and n2.
  • Give hours the right type to hold the return value of mult().