Jump to content

User:Binari: Difference between revisions

No edit summary
Line 102:
<lang java>
/* package whatever; // don't place package name! */
 
import java.util.*;
import java.lang.*;
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
for (int i=99; i>=1; i--) {
System.out.println(i+" bottles of beer on the wall, "+i+" bottles of beer");
System.out.println("Take one down and pass it around, "+(i-1)+" bottles of beer on the wall.");
System.out.println(); //no grammar
}/* package whatever; // don't place package name! */
 
import java.util.*;
Line 132 ⟶ 117:
System.out.println(); //no grammar
}
}
}
}
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.