Skip to content

Instantly share code, notes, and snippets.

@incheon incheon/Main.java
Last active Mar 11, 2016

Embed
What would you like to do?
// 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);
}
}
}
}
// // Q1
// public class q1 {
// public static void main(String[] args) {
// System.out.println("hello");
// }
// }
// // 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
You can’t perform that action at this time.