Path: csiph.com!feeder.erje.net!1.us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail From: Popping mad Newsgroups: comp.lang.java.programmer Subject: Re: how does one explain this syntax? Date: Sun, 22 May 2016 20:21:57 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 12 Message-ID: References: NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader1.panix.com 1463948517 21470 96.57.23.82 (22 May 2016 20:21:57 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Sun, 22 May 2016 20:21:57 +0000 (UTC) User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.lang.java.programmer:34369 On Sun, 22 May 2016 07:21:15 -0400, Eric Sosman wrote: > /* Display content using Iterator*/ >> Set set = tmap.entrySet(); <> constructor for another class? > > It's a method call. evidently it is a constructor the question because why do I need two levels of class hierarchy manually called just to do a simple foreach.