Re: A List with template



I don't know if it's a typo but

"List<string>"

/is/ in fact no valid type. List<String> (note the capital S) would be, but only if you are using Java version 5.

If this book that you are mentioning is not very recent it may not have a chapter about generics since they are a quite new feature in Java.

.... but if you have problems compiling a OSS project it may be best not to post in c.l.j.programmers, but instead contact the project team directly and ask what might be going wrong. They will be able to help you - we here most probably won't.

/philipp

海风 schrieb:
I am studying a java project downloaded from internet, but i can not
compile it correctly.
one error is that List<string> is not a type, but i have import
java.util.List .why?
on the other hand, from a book named thinking in java i can not find
any info about a List with template.

.