/* * raffle.java * * Created on 1. Oktober 2006, 20:10 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package smstool; import java.util.regex.Pattern; /** * * @author jahu.th */ public class raffle { String _id; String _name; int _winner; int _tickets; String _link; String _image; String[][] _winners; /** Creates a new instance of raffle */ public raffle(String id, String name, String winner, String tickets, String link, String image, String winners) { _id = id; _name = name; _winner = Integer.parseInt(winner); _tickets = Integer.parseInt(tickets); _link = link; _image = image; String[] temp_winner = Pattern.compile("%").split(winners); for(int i=0; i