Results 1 to 14 of 14
Thread: List
- 05-16-2012, 08:06 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 55
- Rep Power
- 0
- 05-16-2012, 08:29 AM #2
Re: List
You probably imported the wrong class.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-16-2012, 08:58 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
- 05-16-2012, 08:59 AM #4
Member
- Join Date
- Jan 2012
- Posts
- 55
- Rep Power
- 0
Re: List
no i used import java.util.*;
- 05-16-2012, 10:11 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: List
If you are getting an "incompatible types" error on that line then the compiler is finding another List or ArrayList class in your classpath.
It is either a class you have created or one you have imported.
The only thing (assuming you do not have any extraneous List/ArrayList classes lying around) you should get from that line is a generics warning.Please do not ask for code as refusal often offends.
- 05-16-2012, 10:46 AM #6
Member
- Join Date
- Jan 2012
- Posts
- 55
- Rep Power
- 0
Re: List
thanks!!
- 05-17-2012, 09:53 AM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: List
And the solution was?
Please do not ask for code as refusal often offends.
- 05-17-2012, 10:07 AM #8
Re: List
The solution was: take what you can get from a forum, never give anything back.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-17-2012, 12:39 PM #9
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
Re: List
Here are some more tips:
1) Crosspost as much as possible but don't tell anyone; posting is like fishing: the more bait you throw in the more answers you'll get.
2) Use txt speak or even better: combine it with sms speak; people don't like to read complete words.
3) Don't post your code and if you do, make sure it's uncompilable and don't add any code tags; if it were hard to write it should be hard to read.
4) Add as many links to vague sites as possible; it makes people curious.
5) Include the original assignment text as .pdf files.
6) Bump your thread every fifteen minutes or so; that'll wake up the lazy moderators.
7) Don't thank anyone for their answers; it's their duty to supply answers.
8) It's best to add your question to an old, long dead thread. New threads are expensive.
9) Supply your own interpretation to compilation errors (e.g. "the damn thing threw some stupid error at me"); the original messages as too vague.
10) Always use lower case letters in posts and no punctuation. If possible (not always) leave in some spelling mistakes because we all know how hard it is to double check your own posts.
kind regards,
Jos ;-)Last edited by JosAH; 05-17-2012 at 02:15 PM.
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 05-17-2012, 01:23 PM #10
Member
- Join Date
- Mar 2012
- Posts
- 88
- Rep Power
- 0
Re: List
lol
10) Always use lower case letters in posts and no punctuation. If possible (not always) leave in some spelling mistakes because we all know how hard it is to double check your own posts.
Best Regards
- 05-17-2012, 01:53 PM #11
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
- 05-17-2012, 02:04 PM #12
Re: List
3) Don't post your code and if you do, make sure it's uncompilable and don't add any code tags; if it were hard to write it should be hard to read.3) Don't post your code and if you do, don't add any code tags; if it were hard to write it should be hard to read.
Added a phrase.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-17-2012, 02:16 PM #13
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
- 05-18-2012, 10:58 AM #14
Member
- Join Date
- Mar 2012
- Posts
- 88
- Rep Power
- 0
Similar Threads
-
read emailid and seperate print names in a list and domain in another list
By jellora in forum New To JavaReplies: 1Last Post: 03-25-2012, 09:25 PM -
How can you convert a List<String[]> to a List<Double[]>?
By jetnor in forum New To JavaReplies: 8Last Post: 11-04-2011, 08:30 PM -
Linked List, Array List time complexity
By Rick99771977 in forum New To JavaReplies: 4Last Post: 08-18-2011, 05:37 AM -
How do I list values of an arrays in a comma seperted list
By nmvictor in forum New To JavaReplies: 2Last Post: 11-22-2009, 05:24 PM -
How do I list values of an arrays in a comma seperted list
By nmvictor in forum New To JavaReplies: 3Last Post: 11-21-2009, 05:48 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks