Created
April 24, 2013 18:40
-
-
Save anonymous/5454455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Roulette; | |
import java.util.Collection; | |
import java.util.Set; | |
public class Test { | |
public static void main(String[] args) { | |
Outcome outcome1 = new Outcome("2",1); | |
Outcome outcome2 = new Outcome("2",1); | |
Outcome outcome3 = new Outcome("4",87); | |
System.out.println(outcome1.toString()); | |
System.out.println(outcome1.winAmount(33)); | |
System.out.println(outcome1.equals(outcome2)); | |
System.out.println(outcome1.equals(outcome3)); | |
Outcome five= new Outcome( "00-0-1-2-3", 6 ); | |
Outcome[] ocZero = { | |
new Outcome("0", 35 ), five }; | |
Outcome[] ocZeroZero = { | |
new Outcome("00", 35 ), five }; | |
Bin zero= new Bin( ocZero ); | |
Bin zerozero= new Bin( ocZeroZero ); | |
zero.add(outcome1); | |
System.out.println(zero.toString()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment