public class Date {
int dd,mm,yy;
void display(int a,int b,int c)
{
dd=a;
mm=b;
yy=c;
System.out.println("Date is:"+dd +"/"+mm +"/"+yy);
}
public static void main(String[] args) {
Date dt=new Date();
dt.display(30,12,2013);
}
}
Output: Date is:30/12/2013
No comments:
Post a Comment