HighTechTalks DotNet Forums  

The get() method in java.util.Vector

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss The get() method in java.util.Vector in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Harold Clements
 
Posts: n/a

Default The get() method in java.util.Vector - 10-28-2004 , 06:55 AM






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

Reply With Quote
  #2  
Old   
Bora Ertung
 
Posts: n/a

Default RE: The get() method in java.util.Vector - 11-08-2004 , 05:08 AM






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).

"Harold Clements" wrote:

Quote:
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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.