Project: Power Up the Player Profile

Add a method to upgrade the player’s stats and display the updated profile in this Java project.

Let’s build a full player profile system using everything you’ve learned: classes, constructors, methods, and user input.

Our goal is to:

  • Combine fields, constructors, and methods.

  • Use Scanner to customize input.

  • Display a full profile.

Player class using the method

Here’s a Player class that:

  • Has three fields: namelevel, and health.

  • Initializes those fields through a constructor.

  • Includes a displayProfile() method to show the details.

Get hands-on with 1400+ tech skills courses.