Simple getter method
Constructor
added example of for and for each loop in java