File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
vector and integer
Joined: Oct 28, 2004
Mar 13, 2005 21:33:00
i have below coding
cubaan is integer. outputDuration is a vector. when i tried to compile this coding i got error
addElement(java.lang.Object) in java.util.Vector cannot be applied to (int)
how to solve this error???can anybody help me
Joined: Oct 02, 2003
Mar 13, 2005 21:49:00
Look at the API docs for
. The method's parameter type is
. You can wrap
Marilyn de Queiroz
Joined: Jul 22, 2000
Mar 13, 2005 22:06:00
An 'int' is not an Object. You need to change your int to an Object before you can store it in a Vector.
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: vector and integer
problem with vector of vectors(generics)
whizlab question for SCJP1.5
Why am I getting this error?
Losing object reference in sessions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014