Tantissimi auguri di un felice e sereno 2019 a tutti :-)
*˛°.˛*.˛°˛.*★* BUON *★* 。*
˛. _██_*.。*./ ♥ \ .˛* .˛。.˛.*.★* ANNO *★ 。*
˛. (´• ̮•)*.。*/♫.♫\*˛.* ˛_Π_____. 2019˛* ˛*
.°( . • . ) ˛°./• ‘♫ ‘ •\.˛*./______/~\*. ˛*.。˛* ˛. *。
.*(…’•’.. ) *˛╬╬╬╬╬˛°.|田田 |門|╬╬╬╬╬*˚
import java.util.Scanner;
public class HappyNewYear {
private static Scanner sc;
public static void main(String[] args) {
try {
int newYear;
String name;
sc = new Scanner(System.in);
System.out.println("What is your name?");
name = sc.next();
System.out.println("Enter new year: ");
newYear = sc.nextInt();
System.out.println("Happy new year " + newYear + " to you " + name + " and
your entire family.");
} catch (Exception ex) {
System.err.println("Error performing this task: " + ex);
System.exit(-1);
}
}
}