title: How to return string and int type in a method?
body: <blockquote>
    <p>Write a class for a video game character. The character should have a
    name, a type (scout, soldier, medic, etc.) and current health.
    Therefore it needs three attributes:</p>
    
    <p><code>String name, String type, int health</code> </p>
    
    <p>This class should have the following methods:</p>
    
    <p><code>GameCharacter( String newName, String newType, newCurHealth )</code>
    Constructor that takes three inputs.</p>
    
    <p><code>changeHealth( int change )</code> A method that changes the health of the
    character. The character’s health will change by change amount, so it
    will go down if change is negative, and up if it’s positive. If the
    health goes below 0, changeHealth should return the String "Your
    character is dead".</p>
  </blockquote>
  
  <p>Here is my code so far. Is there anything I can do to make it better? &amp; a way to return a string in my second method?</p>
  
  <pre><code>public class GameCharacter {
      private String name;
      private String type;
      private int health;
  
      public GameCharacter(String newName, String newType, int newCurHealth){
          name = newName;
          type = newType;
          health = newCurHealth;
      }
  
      public int changeHealth (int change){
          if (change &lt; 0){
              return health - change;
          } else if (change &gt; 0){
              return health + change;
          } else if (health &lt; 1){
              // string that character is dead
          }
      }
  
      public static void main(String[] args){
          GameCharacter Mario = new GameCharacter ("Mario", "Hero", 100);
          GameCharacter Luigi = new GameCharacter ("Luigi", "Sidekick", 100);
          GameCharacter Bowser = new GameCharacter ("Bowser", "Villian", 100);
      }
  }
  </code></pre>