Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Java Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Drkgodz
Flash moderator
Reputation: 2

Joined: 17 Jul 2006
Posts: 2997
Location: Houston

PostPosted: Sun Aug 30, 2009 11:54 am    Post subject: Java Help Reply with quote

Is there any Array like data type in Java?
Because Array doesn't have all the usual methods I'm used to.
Like push, and splice.

I have a bunch of sockets. I want to organize them in a list. So I am trying to make an array of them.

I have one solution in mind, which is pretty much me making my own variable called amountOfSockets, but I want to know if there is a simple solution.

_________________
Back to top
View user's profile Send private message
Guy
Expert Cheater
Reputation: 0

Joined: 30 May 2009
Posts: 187

PostPosted: Sun Aug 30, 2009 1:34 pm    Post subject: Reply with quote

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html

That's about it; allocate the array with sockets, then modify each slot manually, or make your own push/slice methods, keeping track of the number of sockets in the array, etc.

_________________
Has anyone seen Hitler around..? If so, PM me!
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sun Aug 30, 2009 4:55 pm    Post subject: Re: Java Help Reply with quote

Drkgodz wrote:
Like push, and splice.
You probably want a vector or something for pushing, etc. Then you could call .toArray()..
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Aug 31, 2009 5:26 am    Post subject: Reply with quote

look up abstract data types, there's probably one which will fit your needs. else you can make your own
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Mon Aug 31, 2009 6:04 am    Post subject: Reply with quote

There's a few things which you might wanna use:

http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html
http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedList.html
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites