Skip to content

Instantly share code, notes, and snippets.

@NickCarneiro
Created February 9, 2012 03:27
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 NickCarneiro/1777021 to your computer and use it in GitHub Desktop.
Save NickCarneiro/1777021 to your computer and use it in GitHub Desktop.
public class Main {
/**
* @param args
*
*/
public static void main(String[] args) {
// prints "hello world"
System.out.println("Hello world! \nGoodbye world");
Integer a = 3;
Integer b = 5;
Integer c;
c = a + b;
System.out.println("a is " + a + ". b is " + b + " and c is " + c);
Integer number = 0;
while(number < 101){
if(number % 2 == 0){
System.out.println(number);
}
number++;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment