syntax error with else
<p>whenever I try to use the else statement I keep getting the error:   Syntax error on token "else", delete this token. This is annoying because I have tried copying it in exactly as I see it on about 5 different examples. And I still have not been able to write a line with the else condition without errors. I figure it must be something from a larger perspective that I am doing wrong, because I cannot write it successfully anywhere!! Below is the actual code that I am compiling and want to use it for.</p>

<pre><code> System.out.println("Enter start time");
 String startTime = console.nextLine();
 String [] tokens = startTime.split(":");
 double starttimeHours = Double.parseDouble(tokens[0]);
 double starttimeMinutes = Double.parseDouble(tokens[1]);{
   if (starttimeHours &gt;=6 &amp;&amp; starttimeHours &lt;=9 );{
   int peaktimeWage = 4;}
   else
</code></pre>

<p>Thanks guys the if else statement works now. I have changed my code to this:</p>

<pre><code> System.out.println("Enter start time");
 String startTime = console.nextLine();
 String [] tokens = startTime.split(":");
 double starttimeHours = Double.parseDouble(tokens[0]);
 double starttimeMinutes = Double.parseDouble(tokens[1]);{
  if (starttimeHours &gt;=6 &amp;&amp; starttimeHours &lt;=9 ){
  int peaktimeWages = 4;}
  else if  (starttimeHours &gt;=1 &amp;&amp; starttimeHours &lt;=5 ){
  int peaktimeWages = 2;}

  else {int peaktimeWages = 3;}{
  System.out.println(peaktimeWages);

  }}}}
</code></pre>

<p>Now the issue I am having is at the last line of code:
        System.out.println(peaktimeWages);</p>

<p>It keeps saying peaktimeWages cannot be resolved to a variable, but I am not trying to resolve it to a variable, I am just trying to print it out. So the message seems wrong to me. Also I have previous code printed in the same manner as 
       System.out.println(peaktimeWages);</p>

<p>With only the variable different, so I do not know why it will not accept it. I think the problem must be from a previous section of code.</p>
