Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2155
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Need Help with some code. Not sure why it's not working. Can someone please take a look? |
| Date | 2012-10-13 09:23 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <k5bq15$rl6$1@dont-email.me> (permalink) |
| References | <b643cfda-6dda-4d8d-aa1a-1ae01740291b@googlegroups.com> |
On 10/12/2012 10:10 PM, ortizgabriel79@gmail.com wrote:
> It keeps saying that type ArrayList is not generic and cannot be parametierized with arguments <Double>
>
> AND that Parameterized types are only available if source type is 5.0
>
> I'm using Eclipse to comiple everything.
> [...]
Perhaps your project is set up for pre-5.0 Java. I'm not
an Eclipse user, but two things to check are
- Do your project setting specify a particular Java version?
If so, and if you're using an ancient Java[*], consider
moving to a more recent edition.
- Is your Java installation itself ancient? That is, when
the compiler looks for Java's own classes does it find
something from the Dark Ages[*]?
[*] J2SE 5 brought generics to Java eight years ago, went
to end-of-life status four years ago, and became unsupported
three years ago. The rest of the world is now on J2SE 7, with
J2SE 8 expected next year. "Be not the first by whom the new
is tried / Nor yet the last to set the old aside."
--
Eric Sosman
esosman@comcast-dot-net.invalid
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need Help with some code. Not sure why it's not working. Can someone please take a look? ortizgabriel79@gmail.com - 2012-10-12 19:10 -0700 Re: Need Help with some code. Not sure why it's not working. Can someone please take a look? Lew <lewbloch@gmail.com> - 2012-10-12 22:42 -0700 Re: Need Help with some code. Not sure why it's not working. Can someone please take a look? Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-13 09:23 -0400 Re: Need Help with some code. Not sure why it's not working. Can someone please take a look? John Dildy <jdildy85@gmail.com> - 2012-12-02 13:56 -0800
csiph-web