class ShowGra implements Runnable
{
private int percent;
public ShowGra(int per)
{
= per;
}
public void run(){
int i;
for(int j=0;j<30;j++)
("\b");
for(i=0;i<percent/5;i++)
{
("=");
}
int blanks = 25-i;
for(int k=0;k<blanks;k++)
(" ");
("%3d%%",percent);
}
}
public class Test
{
public Test()
{
}
public static void main(String[] args)
{
int per = 0;
while(per<=100){
Runnable run2 = new ShowGra(per);
Thread thread2 = new Thread(run2);
();
try{
(1000);
}catch(Exception e)
{
;
}
finally{
per+=5;
}
}
}
}