Skip to content

Instantly share code, notes, and snippets.

@TristanWiley
Created November 25, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TristanWiley/6bde4bc7db3a3b584c2b to your computer and use it in GitHub Desktop.
Save TristanWiley/6bde4bc7db3a3b584c2b to your computer and use it in GitHub Desktop.
//*******************************************************************
// Java compiler created in PHP to quickly and safely test code.
// NOTE: please read the 'More Info' tab to the right for shortcuts.
//*******************************************************************
import java.lang.Math; // header stuff MUST go above the first class
// our main class becomes a file but the main method is still found
public class HelloWorld
{
public static void main(String[] args)
{
for (int i = 1000; i < 2000; i++) {
if (i % 3 == 0 && i % 6 == 0 && i % 9 == 0) {
System.out.println(i);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment