I don't know why it doesn't compile ! !
import java.util.Scanner;
public class Beach {
public static void main (String [] args) {
Scanner input = new Scanner (System.in);
System.out.println("Enter the weather Hot or Cold");
String A;
A = input.next();
System.out.println("Enter the type of day Sunny or Windy or Rainy");
String B;
B = input.next();
if(A.contains("Hot"))
{
if(B.contains("Rainy"))
{
System.out.print("Don't go to Melbourne Beach");
}
else
{
System.out.print("Go to Melbourne Beach");
}
if(A.contains("Cold"))
{
if(B.contains("Windy"))
{
System.out.print("Don't go to Melbourne Beach");
}
else
{
System.out.print("Go to Melbourne Beach");
}
}
}