Rewrite the following cascading if statement to a switch statement.
System.out.println("Enter size box you want");
int boxSize = scan.nextInt();
double price;
if (boxSize == 10)
{
   System.out.println("Small");
   price = 2.5;
}
else if (boxSize == 20) 
{
   System.out.println("Medium");     
   price = 3.75;
}
else if (boxSize == 30)
{
   System.out.println("Large");
   price = 5.0;
}
else
{
   System.out.println ("Not a valid size.");
   price = -1;
}
if (price > 0)
   System.out.println("Price is $" + price);
else
   System.out.println("Sorry, we don't have that size");