S
Sagar
hi
friends.
I HAD CREATED ONE APPLET WHICH SHOW A CURRENT TIME.
IN
public void paint(Graphics g){
for(;
{
Thread.sleep(100);
//created one date object
Date d=new Date();
String s=d.toString();
g.drawString(s,10,10);
}
To show time i make thread to sleep for some time.
will date object will create for each time.
if so what to do with it.
friends.
I HAD CREATED ONE APPLET WHICH SHOW A CURRENT TIME.
IN
public void paint(Graphics g){
for(;
Thread.sleep(100);
//created one date object
Date d=new Date();
String s=d.toString();
g.drawString(s,10,10);
}
To show time i make thread to sleep for some time.
will date object will create for each time.
if so what to do with it.