Created
February 9, 2012 03:27
-
-
Save NickCarneiro/1777021 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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