I am having an "Illegal start of expression" error with user imput
<p>I am trying to get user input, however I am getting
<code>illegal start of expression</code>  at:</p>

<pre><code>public static String askTheUser() throws IOException
</code></pre>

<p>Complete code:</p>

<p>Edit: I have made most of the changes you guys suggested so now I have this:</p>

<pre><code>import java.io.BufferedReader;

public class Driver
{

public static void main(String[]args)
{
    Dice dice;
    Craps craps;

    userResponse = askTheUser();
    while(userResponse.equalsIgnoreCase("yes"))
    {
        craps = new Craps();
        while(!craps.gameOver())
        {
            craps.roll();
            //print out results of roll
        }
        //print out game results: if(craps.gameWon()...
        userResponse.askTheUser();
    }
}

public static String askTheUser() throws IOException
{
    BufferedReader dataIn = new BufferedReader( new InputStreamReader(System.in) );
    String data;

    System.out.print("Want to play craps? Yes or No");
    data = dataIn.readLine();
    if(data.equals("y") || data.equals("yes"))
    {
        return "yes";
    }
    else
    {
        return "no";
    }
}
}
</code></pre>

<p>However I am still getting <code>cannot find symbol</code> at <code>public static String askTheUser() throws IOException</code>. So might I be missing an import that I don't know of?</p>
