View Person.java
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) { |
View ForEach.java
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. |
View ArrayPrinter.java
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 }; |
View Arrays.java
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 { |
View SwitchDemo.java
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(); | |
} |
View IfDemo.java
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 { |
View Booleans.java
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 { |
View Booleans.java
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 { |
View For.java
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(); |
View While.java
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