1 way to do this would be :



String 1to10;

if (num >= 1 && num <= 10)
1to10 += "* ";