Happy New Year 2016
//NEW YEAR WISHES- A Computer Science Engineer's way !
//NewYear.java
//NewYear.java
package newyear;
import java.io.*;
import java.util.scanner;
Scanner in = new Scanner(System.in);
class NewYear
{
void wishes(int year)
{
System.out.println(" Wishing you and your family, A happy new year "
+year "!!! smile emoticon smile emoticon");
System.out.println("Warm regards and let there be peace everywhere!!! \n May this year you get all what you want");
}
}
class newYear
{
public static void main(String []args)
{
{
public static void main(String []args)
{
int year = in.nextInt();
NewYear happy = new NewYear();
happy.wishes(year);
NewYear happy = new NewYear();
happy.wishes(year);
);
}
}
}
}
Comments
Post a Comment