1 import java.util.Scanner; 2 3 public class Pilot { 4 public String name = "qwe"; 5 public int exp = 5; 6 7 public Pilot(String name, int exp) { 8 this.name = name; 9 this.exp = exp; 10 } 11 12 public Pilot(String name) { 13 this.name = name; 14 } 15 16 public Pilot(int exp) { 17 this.exp = exp; 18 } 19 20 public Pilot() { 21 } 22 23 public String getName() { 24 return name; 25 } 26 27 public void setName(String name) { 28 this.name = name; 29 } 30 31 public int getExp() { 32 return exp; 33 } 34 35 public void setExp(int exp) { 36 this.exp = exp; 37 } 38 39 @Override 40 public String toString() { 41 return "Pilot{" + 42 "name='" + name + '\'' + 43 ", exp=" + exp + 44 '}'; 45 } 46 47 // public static void pilotStamine(){ 48 // Pilot pilot = new Pilot; 49 // int pilotStamine = pilot.exp * 10 /*(1 + (int) (Math.random() * 2))*/ ; 50 // System.out.println(pilotStamine); 51 // } 52 } 53 54