0

Guys this code is working in my laptop but in solo learn its not working check this all of you and tell me reason?

public class Piramid extends Thread { public void run(){ int i,j,k; for(i=1;i<10;i++){ for( k=i;k<10;k++) System.out.print(" "); try{ for( j=1;j<=i;j++){ sleep(400); System.out.print(" *");} } catch(InterruptedException e){ System.out.println("some error occur"); } System.out.println(); }} public static void main(String a []){ Piramid o=new Piramid(); o.start ();}}

26th Feb 2017, 5:46 AM
Pradeep gupta
Pradeep gupta - avatar
2 Réponses
+ 1
sololearn has a sh! t compiler. as long as it works on your laptop it's fine
28th Feb 2017, 6:06 AM
Seckar
Seckar - avatar
0
ya u r right
1st Mar 2017, 5:47 AM
Pradeep gupta
Pradeep gupta - avatar