Use the code below to input an integer from the user. Write a switch statement that examines the integer and prints out the name of the corresponding planet. Print an error message if an invalid integer is entered.
```java import java.util.Scanner;
public class Planets
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
System.out.print("Enter a planet number from the sun: ");