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
package com.oopuniversity.basics.classes; | |
/** | |
* Created by OOPUniversity on 11/15/2015. | |
*/ | |
public class Person { | |
private String firstName; | |
private String lastName; | |
public Person(String newFirstName, String newLastName) { |
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
package com.oopuniversity.basics.loops; | |
import com.oopuniversity.basics.classes.Person; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
/** | |
* Created by OOPUniversity on 11/15/2015. |
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
package com.oopuniversity.reddit.javahelp.array_print; | |
/** | |
* Created by OOPUniversity on 11/10/2015. | |
*/ | |
public class ArrayPrinter { | |
public static void main(String[] args) { | |
String[] strs = {"a", "b", "giraffe"}; | |
Integer [] ints = { 1, 2, 37, 4 }; |
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
/* | |
* Copyright (c) 2014. | |
*/ | |
package main.java.com.oopuniversity.basics.variables; | |
/** | |
* Created by OOPUniversity on 11/15/2014. | |
*/ | |
public class Arrays { |
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
package main.java.com.oopuniversity.basics.conditionals; | |
/** | |
* Created by OOPUniversity on 11/9/2015. | |
*/ | |
public class SwitchDemo { | |
public static void main(String[] args) { | |
switchDemo(); | |
} |
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
/* | |
* Copyright (c) 2014. | |
*/ | |
package main.java.com.oopuniversity.basics.conditionals; | |
/** | |
* Created by OOPUniversity on 12/2/2014. | |
*/ | |
public class IfDemo { |
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
/* | |
* Copyright (c) 2014. | |
*/ | |
package main.java.com.oopuniversity.basics.variables; | |
/** | |
* Created by OOPUniversity on 11/15/2014. | |
*/ | |
public class Booleans { |
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
/* | |
* Copyright (c) 2014. | |
*/ | |
package main.java.com.oopuniversity.basics.variables; | |
/** | |
* Created by OOPUniversity on 11/15/2014. | |
*/ | |
public class Booleans { |
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
package main.java.com.oopuniversity.basics.loops; | |
/** | |
* Created by OOPUniversity on 11/15/2014. | |
*/ | |
public class For { | |
public static void main(String [] args) { | |
for1(); | |
for2(); |
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
/* | |
* Copyright (c) 2014. | |
*/ | |
package main.java.com.oopuniversity.basics.loops; | |
/** | |
* Created by OOPUniversity on 11/15/2014. | |
*/ | |
public class While { |
NewerOlder