card game - how to find who won?

I am having problem thinking of a way to determine a winner of a hand, or if its a draw.

I have a players vector which holds Player objects.

I use

for(int i=0; i<players.size(); i++) players.get(i).bet() etc to play the game

however,

how I can go through the vector and determine a winner or find out if its a draw? One way is to sort it and get the last element , but if its a draw?

Any ideas, or my players in a vector idea is rubish? I though using a vector because you never know how many players will play and if I used conditional structure it would limit it.

There are quite many card games. Which one are you making?

Using the Vector is fine 8)

You could add a Enum to an hand object and read it out?
You calculate logic so you can set a Enum state any time.

then you read out the state and you know what happend.
This code won’t compile but shows what I mean:

public Enum gameState  { WON, DRAW, NOWINNER}
private gameState myState;
logic() {
if oneplayerone myState = gameState. WON
else if twoplayerswon mystate = gameState.DRAW 
else myState.NOWINNER
}

I am making a random game with basic rules for now, until I have a working set.

But I have problems setting up a betting structure. I think my Table class needs revision. I could really use a card game example in java but I cant find any. Do you have any links?

Ive been making a lot of solitaire games. Here is an example of klondike (its not multiplayer, but its a card game):
http://www.mediafire.com/?3120zx12x13

If u just say what the conditions of winning or having a draw are, its very easy to implement them.
And try not to use Vectors or classes and stuff at first. Its just easier to code it with arrays and int’s, then u might decide to use objects and vectors.