Last active
March 11, 2016 04:53
-
-
Save incheon/353f6f8309156bc4dd21 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
// Q1 | |
public class Main { | |
public static void main(String[] args) { | |
for(int i=0;i<100;i=i+2){ | |
System.out.println(i); | |
} | |
public static showEvens { | |
for(int i=0;i<100;i=i+2){ | |
System.out.println(i); | |
} | |
} | |
public static void getEvens(int x){ | |
for(int i=0;i<1000;i++){ | |
System.out.println(i); | |
} | |
} | |
} | |
} |
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
// // Q1 | |
// public class q1 { | |
// public static void main(String[] args) { | |
// System.out.println("hello"); | |
// } | |
// } |
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
// // Q2 | |
// public class q2 { | |
// public int THIS_YEAR = 2016; | |
// public int age; | |
// public String name; | |
// public static void main(String[] args) { | |
// Main m = new Main(); | |
// m.age = 20; | |
// m.name = "Taro"; | |
// } | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment