Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / November 2004

Tip: Looking for answers? Try searching our database.

The get() method in java.util.Vector

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harold Clements - 28 Oct 2004 11:55 GMT
I am attempting to write a class that sorts a vector and is an extension of
java.util.Vector .

It basically works by finding the difference between two integer values
stored in an object that the vector is holding.

My problem is that I can get the code to work fine in Java 1.4.2 but when I
try migrating the code to the .NET frame work it can not find the .get method.

if{((PCData)get(j)).compareTo((PCData)get(j+1))<0)

The error is:
Cannot find method 'get(int)' in 'PS.SortableVector'

If anyone has any ideas I would be extremely grateful.

Thanks
Harold Clements
Lars-Inge T?nnessen [VJ# MVP] - 01 Nov 2004 19:04 GMT
> If anyone has any ideas I would be extremely grateful.

We would love to take a look at you code.

I would guess the problem is with the supported version issue, but we must
take a look at you code to see if we can come up with any ideas.

Regards,
Lars-Inge T?nnessen
Bora Ertung - 08 Nov 2004 10:08 GMT
You should not forget that J# only supports 1.1.4 compatible java SDK
classes. get() method in Vector class is 1.2 based. You may use
elementAt(index).

> I am attempting to write a class that sorts a vector and is an extension of
> java.util.Vector .
[quoted text clipped - 14 lines]
> Thanks
> Harold Clements

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.