So strange when start doing it. I also just finished that exercise. Here return an object, so not same with some examples before. Example: if return a primitive type: suppose declare an variable, int a = 10;
then you return its value: return a; then execute: System.out.println(a); => output: 10 But in this exercise, return an object. Example: return object; This object has some method, so to understand this, you try one to see the output: System.out.println(object.itsMethod()); Think and try again :) If i was wrong, please let me know ! Regard --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
