public class Ticket
{
    public Ticket (String[] range)
    {
        _values = new int[range.length];

        for (int i = 0; i < range.length; i++)
        {
            _values[i] = Integer.parseInt(range[i]);
        }
    }

    public int[] values ()
    {
        return _values;
    }

    @Override
    public String toString ()
    {
        String str = "Ticket: ";

        for (int i = 0; i < _values.length; i++)
            str += i+" ";

        return str;
    }

    private int[] _values;
}
public class Ticket
{
    public Ticket (String[] range)
    {
        _values = new int[range.length];

        for (int i = 0; i < range.length; i++)
        {
            _values[i] = Integer.parseInt(range[i]);
        }
    }

    public int[] values ()
    {
        return _values;
    }

    @Override
    public String toString ()
    {
        String str = "Ticket: ";

        for (int i = 0; i < _values.length; i++)
            str += _values[i]+" ";

        return str;
    }

    private int[] _values;
}
Update Ticket.java