Here is the follow up to my last question. I hope this is seen as a reply by Magistrate
15 16 public class RaceCar { 17 String Str1 = "yes"; 18 String Str2 = "no"; 19 public String upshift; 20 public String downshift; 21 public int currentGear; 22 public String crash; 23 public String pitstop; 24 public String goOnelap; 25 public int lapCounter; 26 public int currentPosition; 27 public int currentMph; 28 public String currentGas; 29 public String currentOilpressure; 30 public int lapcounter = 1; 31 32 33 // default constructor RaceCar newRaceCar = new RaceCar(: 34 public RaceCar(int pcurrentPosition){ 35 this.currentGas = "full"; 36 this.crash = "Str2"; 37 this.currentMph = 0; 38 this.currentGear = 1; 39 this.pitstop = "Str2"; 40 this.currentOilpressure = "medium"; 41 this.downshift = "Str2"; 42 this.upshift = "Str1"; lab_7_toledo_500_--.._ .RaceCar RaceCar Notifications Output - Lab_7_Toledo_500_ [run) X run : Upshift Current Gear is 2 Current lap is 1 Current lap is 1 BUILD SUCCESSFUL (total time: 0 seconds) to search O WHistory T LITIS. WOWITSTIT = 312 ; this.upshift = "Str1"; this.goOnelap = "Str2"; this.crash = "Str2"; this.currentPosition = pcurrentPosition; this.lapCounter = 1; public void goOnelapOf if(this.goOnelap.compareTo("Str1") = = 0)( lapCounter+ +; System. out.format("Current lap is %d\\", lapCounter); else( System.outformat("Current lap is %d\\", lapCounter); public void upshiftof if(this.upshift.compareTo("Str1") = = OH currentGear+ +; System. out.printIn("Upshift"); System. out.format("Current Gear is %d\\", currentGear); elsel System.out.format("Current Gear is %d\\", currentGear); _7_toledo_500 RaceCar > itions Output - Lab_7_Toledo_500 X run : Upshift Current Gear is 2 Current lap is 1 Current lap is 1 BUILD SUCCESSFUL (total time: 0 seconds) ich O w58 System. out.format("Current lap is %d\\", lapCounter); 59 60 61 public void upshiftof 62 if(this.upshift.compareTo("Str1") = = OH 63 currentGear+ +; 64 System.out.printIn("Upshift"); 65 System. out.format("Current Gear is %d\\", currentGear); 66 67 else( 68 System. out.format("Current Gear is %d\\", currentGear); 69 70 71 public void set_lapCounter(int lapCounter){ 72 this.lapCounter=lapCounter; 73 74 public int lapCounterOf 75 return this.lapCounter; 76 77 public void set_currentMph(int currentMph)( 78 this.currentMph= currentMph; 79 80 public int get_currentMphof 81 return this.currentMph; B2 83 public void set_currentGear(int currentGear)( B4 this.currentGear= currentGear; 85 86 public int get_currentGearOf 87 return this.currentGear; 8 8 89 public void set_pitstop(String pitstop)( 90 this.pitstop=pitstop; 91 92 public String get_pitstopOf 93 return this.pitstop; 94 95 public void set_currentGas(String currentGas)( 96 this.currentGas= currentGas; 97 So lab_7_toledo_500 RaceCar Notifications Output - Lab_7_Toledo_500 run) X run : search O O O WSource History 95 Public Void set currentuas(String currentGas/ 96 this.currentGas=currentGas; 97 98 public String get_currentGasOf 99 return this.currentGas; 100 101 - public void set_crash(String crash)( 102 this.crash=crash; 103 104 public String get_crashOf 105 return this.crash; 106 107 public void set_currentOilpressure(String currentOilpressure)( 108 this.currentOilpressure=currentOilpressure; 109 110 public String get_currentOilpressureOf 111 return this.currentOilpressure; 112 113 public void set_downshift(String downshift)( 114 this.downshift=downshift; 115 116 public String get_downshiftOf 117 return this.downshift; 118 119 public void set_upshift(String upshift){ 120 this.upshift=upshift; 121 122 public String get upshiftof 123 return this.upshift; 124 125 public void set_goOnelap(String goOnelap)( 126 this.goOnelap=goOnelap; 127 128 public String get_goOnelapOf 129 return this.goOnelap; 130 131 public void set_currentPosition(int pcurrentPosition)( 132 this.currentPosition = pcurrentPosition; 133 134 public int get_currentPositionOf 135 return this.currentPosition; lab_7_toledo_500_ set_crash Notifications Output - Lab_7_Toledo_500 (run) X run : to search O O WStart Page X RaceCar.java X Lab_7_Toledo_500. * Dog.java X Week7_p Source History 8 10 * @author Athlon 11 * / 12 public class Lab_7_Toledo_500_ 13 14 15 16 9 17 *@param args the command line arguments 18 */ 19 public static void main(String args) { 20 21 RaceCar myRaceCarHonda = new RaceCar(5); 22 RaceCar myRaceCarChevy = new RaceCar(1); 23 RaceCar myRaceCarFord = new RaceCar(9); 24 25 26 27 myRaceCarHonda.upshift(; 28 myRaceCarChevy.goOnelap0; 29 myRaceCarChevy.goOnelapo:| 30 //myRaceCarFord.getgoOnelap("yes"); 31 //myRaceCarHonda.getupshift(; 32 //myRaceCarHonda.getcurrentPosition(); 33 34 35 36 37 lab_7_toledo_500 Lab_7_Toledo_- main> Notifications Output - Lab_7_Toledo_50v_- (run) X run : Upshift Current Gear is 2 Current lap is 1 Current lap is 1 BUILD SUCCESSFUL (total time: 0 seconds)