1 import java.util.Scanner; 2 3 public class Plaine { 4 5 public static int flyHard(){ 6 int fly = 0 + (int) (Math.random() * 10); 7 return fly; 8 } 9 10 public static void name() { 11 12 String name = new Scanner(System.in).next(); 13 Pilot pilot = new Pilot(); 14 pilot.setName(name); 15 } 16 17 public static int exp(){ 18 19 int exp = new Scanner(System.in).nextInt(); 20 Pilot pilot = new Pilot(12); 21 pilot.setExp(exp); 22 System.out.println(pilot.getExp()); 23 return exp; 24 } 25 26 public static void pokazatuVse(){ 27 Pilot pilot = new Pilot(); 28 //спочатку дається значеня а потім сетається 29 System.out.println(pilot.getName() + pilot.getExp()); 30 } 31 32 } 33