My if else statement is not working...it keeps telling me that the else in the statement is a syntax error and that I should remove it. Whats wrong with it?
package Homework2; import java.util.Scanner; public class Homework2 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Welcome to the Triangle Program."); Scanner keyboard = new Scanner(System.in); System.out.println("Please enter the length of side 1:"); double a = keyboard.nextDouble(); System.out.println("Please enter the length of side 2:"); double b = keyboard.nextDouble(); System.out.println("Please enter the length of side 3:"); double c = keyboard.nextDouble(); if(a*a + b*b == c*c); { System.out.println("This is a Right Triangle"); } else { System.out.println("This is NOT a right triangle"); } } }