Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29953
| Path | csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Steven Simpson <ss@domain.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How does it know? |
| Date | Fri, 12 Sep 2014 17:36:41 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 25 |
| Message-ID | <p1kbeb-rqd.ln1@s.simpson148.btinternet.com> (permalink) |
| References | <luv2fd$j58$1@dont-email.me> <luv3up$te6$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx05.eternal-september.org; posting-host="8d2122d2008ee80f5e54b979e3340738"; logging-data="31073"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mLhQPyq3l1bNaKLgNIRVS+rmNF9eOVao=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
| In-Reply-To | <luv3up$te6$1@dont-email.me> |
| Cancel-Lock | sha1:MPr3/ceKu4IwXLz+5QJcG1l+Uvc= |
| Xref | csiph.com comp.lang.java.programmer:29953 |
Show key headers only | View raw
On 12/09/14 16:36, Knute Johnson wrote:
> On 9/12/2014 08:11, Knute Johnson wrote:
>> The second question is, what type is test.main()? I want to be able to
>> put it into a Map.
>
> Now that I think about it, I don't think that is possible.
import java.util.*;
public class TestApplication {
public interface Application {
void main(String... args) throws Exception;
}
public static void main(String[] args) {
Map<String, Application> map = new HashMap<>();
map.put("self", TestApplication::main);
}
}
--
ss at comp dot lancs dot ac dot uk
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-12 08:11 -0700
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-12 08:36 -0700
Re: How does it know? Steven Simpson <ss@domain.invalid> - 2014-09-12 17:36 +0100
Re: How does it know? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-12 21:40 +0300
Re: How does it know? Joerg Meier <joergmmeier@arcor.de> - 2014-09-13 11:57 +0200
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-12 16:18 -0700
Re: How does it know? Mike Amling <mamling@chaff.us> - 2014-09-14 08:52 -0500
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:48 -0700
Re: How does it know? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-12 18:11 -0700
Re: How does it know? Joerg Meier <joergmmeier@arcor.de> - 2014-09-13 11:59 +0200
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:51 -0700
Re: How does it know? Arne Vajhøj <arne@vajhoej.dk> - 2014-09-14 22:24 -0400
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:50 -0700
Re: How does it know? Arne Vajhøj <arne@vajhoej.dk> - 2014-09-14 22:26 -0400
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-17 14:52 -0700
Re: How does it know? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-12 18:13 -0700
Re: How does it know? Mike Amling <mamling@chaff.us> - 2014-09-14 08:29 -0500
Re: How does it know? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2014-09-14 07:53 -0700
Re: How does it know? Roedy Green <see_website@mindprod.com.invalid> - 2014-09-17 00:40 -0700
Re: How does it know? Joerg Meier <joergmmeier@arcor.de> - 2014-09-18 00:10 +0200
csiph-web