Another vouch for Pete (I know he doesn't really need it but it's more of a recommendation) - just bought my 3rd? lot of 2m through dstone from him. Will be getting more soon.
Thanks champ.
Thanks Swan :D
With powerful VM's like V8, Rhino, SquirrelFish, and TraceMonkey we will see more and more usage of JS as a general purpose language.
The language itself is extremely powerful and expressive (moreso than Java).
Wrong.
You re-assigned the value of "num", so the value of "num" is actually now 400. num*2 would be 800.
Also, a few tips.
int num;
num = 200;
can be simplified to:
int num = 200;
num = num * 2; can be simplified to
num *= 2;
Here's my implementation (excuse lack of package)
import java.util.*;
public class Deck implements Iterable<Card> {
private final Stack<Card> cards;
public Deck() {
cards = new Stack<Card>();
for (Suit suit : Suit.SUITS) {...