|
-
Nov 21st, 2004, 10:41 AM
#1
Thread Starter
Fanatic Member
Last edited by TheVader; Nov 22nd, 2004 at 07:24 PM.
Author for Visual Basic Web Magazine
-
Nov 21st, 2004, 04:27 PM
#2
Frenzied Member
This compiled fine for me. You might be using an older version of java or something.
-
Nov 21st, 2004, 05:35 PM
#3
Actually, I think he's using a very new version. Some Java 5 compilers I've seen emit this warning (a warning, mind you, the compiling still works) if you're not using generics when you can, which is generally less safe than using them. ArrayList being the case. Make it an ArrayList<String> and it should compile fine.
If your code is really Java 1.4, pass the "-source 1.4" switch to the compiler. This will eliminate the warning/error as well.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 22nd, 2004, 07:24 PM
#4
Thread Starter
Fanatic Member
Thanks, that was it indeed. I was using Java 1.5. I downgraded to version 1.4.2. Perhaps later on I'll reinstall 1.5 and see what advantages it brings; but for now I have a deadline to overcome.
Author for Visual Basic Web Magazine
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|