RE: java Lists

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sat, 11 Dec 2010 18:30:42 -0500

Do not confuse/conflate templates with generics. They are quite different.

Also, C++'s implementation of templates, past the basics, is a freaking 
nightmare than all the world's alcohol and pain medication
combined could not even make seem sane, *smile*.

Take care,
Sina 

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of qubit
Sent: Saturday, December 11, 2010 6:27 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: java Lists

well, C++ had them before either C# or java...
But it seems to be a lost art.
--le
----- Original Message -----
From: "Kerneels Roos" <kerneels@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Saturday, December 11, 2010 4:39 PM
Subject: Re: java Lists


Hi, since when did Java get Generics like in C# -- just curious as to
when it became part of the Java SE JDK. Anyone know?

On 12/11/2010 8:21 PM, Sina Bahram wrote:
> It's in java.util; however, I wouldn't just use List, but rather a more 
> specific concept.
>
> Take care,
> Sina
> -----Original Message-----
> From: programmingblind-bounce@xxxxxxxxxxxxx 
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of qubit
> Sent: Saturday, December 11, 2010 11:07 AM
> To: bprogramming
> Subject: java Lists
>
> Greetings -- I am writing a java package that contains a method that has 
> to use class List<String>.  Unfortunately, I have gone
> through a few screenfulls of docs, and although I find List under 
> Collections, I can't figure out what to import to get the
> definition of List.
> I spent yesterday and today battling with java docs and while I could 
> continue to look for this one, I am wondering if someone could
> answer it off the top of their head.  I have tried  importing 
> java.Collections, java.lang.Collections, java.aut.List (that isn't the
> right def).
> Any info is welcome!
> TIA
> --le
>
> __________
> View the list's information and change your settings at 
> //www.freelists.org/list/programmingblind
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>

-- 
Kerneels Roos
Cell: +27 (0)82 309 1998
Skype: cornelis.roos

"If one has the talent it pushes for utterance and torments one; it will 
out; and then one is out with it without questioning. And, look you, there 
is nothing in this thing of learning out of books. Here, here and here 
(pointing to his ear, his head and his heart) is your school. If everything 
is right there, then take your pen and down with it; afterward ask the 
opinion of a man who knows his business."

(To a musically talented boy who asked Mozart how one might learn to 
compose.)

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: