In the season of joy I present my sincere wishes and kind thoughts. May the kind of New Year outshine all the rest.
Wishing you all the blessings of a beautiful season......
Run this one nd see the magic
import java.util.*;
import java.text.*;
class PrintMessage
{
public static void display(String msg) throws Exception{
for(int i=0;i<=msg.length()-1;i++){
char displayMessage=msg.charAt(i);
Thread.sleep(400);
System.out.print(displayMessage);
}
}
public static void wisher(String name){
DateFormat df=DateFormat.getDateInstance();
String date=df.format(new Date());
System.out.println("wishes by "+name+":on date "+date);
}
public static void main(String[] args)throws Exception{
wisher("Basant");
display(" Advance Happy New Year 2018 to all Amarjit Kharga_Java_Gyan_Mantra group members😃");
}
}
Comments
Post a Comment