Syntax Error on Token "int"
<p>I'm new to java (I also know JavaScript and for the last time. I know they aren't the same thing.) working on a personal project of mine and getting an error that doesn't seem to be addressed anywhere else here.</p>

<p>I'm getting a "Syntax Error on Token "int"" On this line of code</p>

<pre><code>//if statement
int Random = int(Math.floor(Math.random()*6));}
//else
//...
</code></pre>

<p>I want "Random" to be a random number 1-6, but I keep getting this error. I've seen other people with a similar problem but they are doing stuff with arrays. And I'm not. How can I fix this?</p>