File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Vector questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Vector questions" Watch "Vector questions" New topic

Vector questions

Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
I have some questions regarding the following vector coding:

Thanks for help.
[This message has been edited by Cindy Glass (edited December 17, 2001).]
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776

Q) What is object? java.lang.Object?
A) Object is the root superclass by default.
Q) where is size() method located? I cannot find it in the doc?
A) java.util.Vector
Q) why it does not need to pass obj - "new String(s)"?
Is s an object already?
A) It is an object reference.


Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
Thanks and I've got other answers from the API.
Don't get me started about those stupid light bulbs.
subject: Vector questions
jQuery in Action, 3rd edition