creating a "for" loop that returns different amounts of characters
<p>I have a class called <code>SnowFallReport</code>, and when an object is created from it, it randomly assigns a number from 1-20 to a field called <code>snowFall</code>. The purpose is to generate a fictitious snow report with random snow amounts. Then I'm trying to create a method that can display a certain number of asterisks based on the number in the <code>snowFall</code> field. A hint was given to me that I'm supposed to use the <code>for</code> loop to do so, and I just cannot figure out how to word it correctly. Code follows:</p>

<pre><code>import java.util.Random;

public class SnowFallReport
{   

    // Random amount of snow
    private double snowAmount;

    // Default constructor creates random amount and assigns to snowAmount
    public SnowFallReport()
    {
        Random snowFall = new Random();
        snowAmount = (snowFall.nextDouble() * 20);
    }

    public double getSnow()
    {
        return snowAmount;
    }

    public String getStars()
    {
        for (int starCount = 0; starCount &gt;= snowAmount; starCount++)
            return "*";
         /* This is what I thought it should be^ but it turns out I need a return
 statement outside of the for loop. I've tried a couple of different ways with no luck */

    }

    public static void main(String[] args)
    {
        SnowFallReport day1 = new SnowFallReport();
        String lol = day1.getStars();
        System.out.print(lol);
    }   
}
</code></pre>
