All pastes #773300 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-14 12:50 UTC
rendered paste body
public static String scores(ArrayList<Dice> check){
		String scores = "";
		
		boolean flag = false;
		for(Dice a : check){
			String tmp = "";
			tmp += a.getNum();
			for(int i = 0; i < scores.length(); i++){
				if(scores.substring(i,i+1).equals(tmp)){
					flag = true;
				}
			}
			scores += tmp + ",";
		}
		//System.out.println(scores.substring(0,scores.length()-1));
		return scores;
	}