Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34372

Re: how does one explain this syntax?

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Lars Enderin <lars.enderin@telia.com>
Newsgroups comp.lang.java.programmer
Subject Re: how does one explain this syntax?
Date Sun, 22 May 2016 22:32:42 +0200
Organization albasani.net
Lines 20
Message-ID <5742176A.7010104@telia.com> (permalink)
References <nhrhd5$7r6$1@reader1.panix.com> <nhs4gm$lre$1@dont-email.me> <nht4d5$kuu$2@reader1.panix.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net v4++gHwlIqpe2ZtN6RJUvax2CWultaJi05x3R2R767R2CF2GWino0DzpNjS0mZ1QYrJ2jMEOLHNcFa3XJ0UssT/mBAtKPQZbAyzssk7D8D0wZqu8jvyg0F92tj8LQScH
NNTP-Posting-Date Sun, 22 May 2016 20:32:43 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="NtwZVGDD3xsjDP6KdvYfnixfdqFgIKMeDCccm8Sp1V3Z8+PuhVOXSI4M45rhnnwb8bjwAFD8G3ku4lGgnibYnqZp/5hd4Va2Uuvhj3/GGEhQ94O7ksdABMcLd5Z2cXwK"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
In-Reply-To <nht4d5$kuu$2@reader1.panix.com>
Cancel-Lock sha1:t5bJyjuEJfrKxCcwJGAxZ8oasmo=
Xref csiph.com comp.lang.java.programmer:34372

Show key headers only | View raw


2016-05-22 22:21 skrev  Popping mad:
> On Sun, 22 May 2016 07:21:15 -0400, Eric Sosman wrote:
> 
>>        /* Display content using Iterator*/
>>>       Set set = tmap.entrySet(); <<random obscure syntax... that is a
>>> constructor for another class?
>>
>>      It's a method call.
> 
> evidently it is a constructor

No! It's a method call returning a Set instance.

> the question because why do I need two levels of class hierarchy manually 
> called just to do a simple foreach.
> 


-- 
Lars Enderin

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how does one explain this syntax? ruben safir <ruben@mrbrklyn.com> - 2016-05-22 01:51 -0400
  Re: how does one explain this syntax? Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-22 10:05 +0000
  Re: how does one explain this syntax? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-22 07:21 -0400
    Re: how does one explain this syntax? Popping mad <rainbow@colition.gov> - 2016-05-22 20:21 +0000
      Re: how does one explain this syntax? Lars Enderin <lars.enderin@telia.com> - 2016-05-22 22:32 +0200
      Re: how does one explain this syntax? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-22 17:32 -0400
      Re: how does one explain this syntax? Lew <lewbloch@gmail.com> - 2016-05-23 14:36 -0700
    Re: how does one explain this syntax? Lew <lewbloch@gmail.com> - 2016-05-23 14:34 -0700
  Re: how does one explain this syntax? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-05-22 08:41 -0700
    Re: how does one explain this syntax? Robert Klemme <shortcutter@googlemail.com> - 2016-05-22 22:22 +0200
      Re: how does one explain this syntax? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-05-22 22:13 -0700
        Re: how does one explain this syntax? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-23 07:32 -0400
          Re: how does one explain this syntax? Robert Klemme <shortcutter@googlemail.com> - 2016-05-23 04:57 -0700
  Re: how does one explain this syntax? Popping mad <rainbow@colition.gov> - 2016-05-22 20:23 +0000
  Re: how does one explain this syntax? Roedy Green <inquiry@mindprod.com> - 2016-05-30 21:51 -0700
  Re: how does one explain this syntax? Roedy Green <inquiry@mindprod.com> - 2016-05-30 21:54 -0700
  Re: how does one explain this syntax? Roedy Green <inquiry@mindprod.com> - 2016-05-30 22:00 -0700
  Re: how does one explain this syntax? Roedy Green <inquiry@mindprod.com> - 2016-05-30 22:17 -0700

csiph-web