Gostaria de saber pq o "else" está com erro.
public class FuncionarioTeste {
private String nome;
private String cpf;
private double salario;
private int tipo = 0;
\\ 0 - Funcionário comum 1 - Cordenadoor 2- Gerente
public double getBonificacao() {
if(this.tipo ==0) {
return this.salario *0.1;
} else if(this.tipo ==1); {
return this.salario;
} else {
return this.salario * 1.0;
}
}
Aparece a mensagem "Syntax error on token "else", delete this token"