write in java

problem statement: your task is to create a program that allows a user to undertake a journey through the solar system, visiting different planets.
Requirements:
use a while loop to keep the expedition going until the user decides to return to earth.
include details about each planet as the user approaches it.
Add space travel challenges that the user must solve to continue the journey (e.g., fuel management, navigation through asteroid fields).
Sample output:
Welcome to the space expedition tracker!
Your journey through the solar system awaits.

Current location: Earth
Next destination: Mars (Enter 'go' to continue or 'return' to go back to earth): go

Approaching Mars...
Beware of a small asteroid field ahead! Navigating...
Successfully reached Mars! Here's a view of Olympus Mons, the largest volcano in the solar system.

Returning to Earth...
Thank you for exploring the solar system with us!

import java.util.Scanner;

public class SpaceExpedition {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);
String destination = "Mars";

System.out.println("Welcome to the space expedition tracker!");
System.out.println("Your journey through the solar system awaits.");

while (true) {
System.out.println("\nCurrent location: Earth");
System.out.print("Next destination: " + destination + " (Enter 'go' to continue or 'return' to go back to earth): ");
String input = scanner.nextLine();

if (input.equalsIgnoreCase("go")) {
if (destination.equals("Mars")) {
System.out.println("\nApproaching Mars...");
System.out.println("Beware of a small asteroid field ahead! Navigating...");
System.out.println("Successfully reached Mars! Here's a view of Olympus Mons, the largest volcano in the solar system.");
destination = "Jupiter";
} else if (destination.equals("Jupiter")) {
System.out.println("\nApproaching Jupiter...");
System.out.println("Fuel levels are critically low. Managing fuel...");
System.out.println("Successfully reached Jupiter! Enjoy the stunning view of the Great Red Spot.");
destination = "Saturn";
} else if (destination.equals("Saturn")) {
System.out.println("\nApproaching Saturn...");
System.out.println("Navigating through Saturn's rings...");
System.out.println("Successfully reached Saturn! Observe the beautiful and mysterious hexagonal storm at its north pole.");
destination = "Uranus";
} else if (destination.equals("Uranus")) {
System.out.println("\nApproaching Uranus...");
System.out.println("Avoiding icy debris...");
System.out.println("Successfully reached Uranus! Take a look at the planet's unusual rotation axis.");
destination = "Neptune";
} else if (destination.equals("Neptune")) {
System.out.println("\nApproaching Neptune...");
System.out.println("Navigating through strong winds...");
System.out.println("Successfully reached Neptune! Neptune's Great Dark Spot is a sight to behold.");
destination = "Pluto";
} else if (destination.equals("Pluto")) {
System.out.println("\nApproaching Pluto...");
System.out.println("Maintaining navigation in the Kuiper Belt...");
System.out.println("Successfully reached Pluto! Here's a glimpse of its heart-shaped feature, Tombaugh Regio.");
destination = "return";
}
} else if (input.equalsIgnoreCase("return")) {
if (destination.equals("return")) {
System.out.println("\nReturning to Earth...");
System.out.println("Thank you for exploring the solar system with us!");
break;
} else {
System.out.println("\nInvalid input. Please enter 'go' or 'return'.");
}
} else {
System.out.println("\nInvalid input. Please enter 'go' or 'return'.");
}
}

scanner.close();
}
}