1. Learn
  2. /
  3. Courses
  4. /
  5. Data Types and Exceptions in Java

Connected

Exercise

POJO, wrappers and java.math

Every great mission starts with a strong launch! In this exercise, you'll launch a Rocket class that has been imported for you.

Ready for liftoff?

Instructions

100 XP
  • Create an instance of the Rocket POJO.
  • Set the Rocket thrust field to "7770000" as a BigDecimal using the corresponding setter.
  • Set the manned field to true using the .setManned() setter.