Guest User

Main.java

a guest
Nov 13th, 2010
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. public class Main
  3. {
  4.  
  5.     public static void main(String[] args)
  6.     {
  7.         Soldier s1 = new Soldier();
  8.  
  9.         System.out.println("Soldier's Height: "+s1.getHeight());
  10.         System.out.println("Soldier's Weight: "+s1.getWeight());
  11.         System.out.println("Soldier's Age: "+s1.getAge());
  12.         System.out.println("Soldier's Money: "+s1.getMoney());
  13.         System.out.println("Soldier's Energy: "+s1.getEnergy());
  14.         System.out.println("Soldier's Strength: "+s1.getStrength());
  15.         System.out.println("Soldier's Name: "+s1.getName());
  16.  
  17.     }
  18.  
  19. }
RAW Paste Data