Get Solutions for: How can I fix the run time error in my code.s. class Main { public static void main(String[] ar

How can I fix the run time error in my code.s.
class Main {
public static void main(String[] args) {
HotAirBalloon airbag = new HotAirBalloon(10000); Locomotive loco = new Locomotive(5000);
System.out.println(airbag.toString()); System.out.println(loco.toString()); } }
class Vehicle {
String mode, fuel;
public String toString() {     return “Vehicle Mode:” + mode + ” Fuel:” +fuel; } }
class HotAirBalloon extends Vehicle {
int maxAltitude;
HotAirBalloon(int _alt) { mode = “flight”; fuel = “propane”; maxAltitude = _alt; } public String toString() {     return toString() + ” Max Altitude:” +maxAltitude; }
}
class Locomotive extends Vehicle {
int horsePower; Locomotive(int _hp) { mode = “traversal”; fuel = “coal”; horsePower = _hp;
} public String toString() {     return toString() + ” Horsepower:” +horsePower; }
}
. . .