Skip to content

Instantly share code, notes, and snippets.

OOPUniversity

Block or report user

Report or block OOPUniversity

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@OOPUniversity
OOPUniversity / ForEach.java
Created Nov 15, 2015
Supporting code for the 'There's a loop for each of us' blog post
View ForEach.java
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.
@OOPUniversity
OOPUniversity / Person.java
Created Nov 15, 2015
Demonstration code for the blog post 'Inheritance Part 1 - That Class is Super!'
View Person.java
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) {
You can’t perform that action at this time.