how does these code differ or similar?
final String line=”******************************************************”;
int month;
System.out.print(“Please enter a month number (1-12):”);
month=console.nextInt();
while((month12))
{System.out.println(“Invalid value, must be (1-12)!Please enter:”);
month= console.nextInt();
}
System.out.println(“”);
{System.out.println(line);
and
final String line=”******************************************************”;
int month;
System.out.print(“Please enter a month number (1-12):”);
month=console.nextInt();
System.out.println(“”);
if((month12))
{System.out.println(“***Incorrect value entered, cannot proceed***”);
System.out.println(“”);
}
else
{System.out.println(line);