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.

```
 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 >=6 && starttimeHours <=9 );{
   int peaktimeWage = 4;}
   else

```

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

```
 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 >=6 && starttimeHours <=9 ){
  int peaktimeWages = 4;}
  else if  (starttimeHours >=1 && starttimeHours <=5 ){
  int peaktimeWages = 2;}

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

  }}}}

```

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

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);

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.