Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Oct 3rd, 2013  |  syntax: None  |  size: 0.68 KB  |  hits: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package proj2;
  2. import cardgames.*;
  3.  
  4. public class Project2 {
  5.         public static void main(String[] args)
  6.         {
  7.                 GUI theWindow = new GUI();
  8.                 Deck theDeck = new Deck();
  9.                 theDeck.shuffleDeck();
  10.                 Card card1 = theDeck.dealCard();
  11.                 System.out.println("Card 1 is: " + card1.toString());
  12.                 Card card2 = theDeck.dealCard();
  13.                 System.out.println("Card 2 is: " + card2.toString());
  14.                 Card card3 = theDeck.dealCard();
  15.                 System.out.println("Card 3 is: " + card3.toString());
  16.                
  17.                 theWindow.showCard(card1);
  18.                 theWindow.showCard(card2);
  19.                 theWindow.showCard(card3);
  20.                
  21.                 if (card1.getValue() == card2.getValue())
  22.                         System.out.println("Pair");
  23.                 else
  24.                         System.out.println("Not a pair");
  25.         }
  26. }