I keep getting this error when I try to build my project. I have checked I have two opening { and two closing }. I cant for the life of me figure out what is wrong with this code. I am fairly new to java and yes this is for a class. I just need help figuring out this error.
import java.util.*;
class Divisibility
{
public static void main(String args[])
{
int n, sum, digit1, digit2, digit3, digit4, digit5; //Declaring my variables.
Scanner input = new Scanner(System.in);
System.out.println("Please enter a 5 digit number.");
n = input.newInt();
if
(n > 100000 && n < 9999); //Checking to make sure they entered a 5 digit number.
System.out.println("You have input an invalid number.");
digital1 = n/10000;
digital2 = n%10000/1000;
digital3 = n%10000%1000/100;
digital4 = n%10000%1000%100/10;
digital5 = n%10000%1000%100%10/1;
System.out.println("You have input an invalid number.");
float div, div2;
sum = digit1 + digit2 + digit3 + digit4 + digit5;
System.out.println("The sum of the digits is /t" +sum);
div = sum%3;
div2 = n%3;
if(div == 3 && div2 == 3)
System.out.println("Both /t" +n+"and /t" +sum+ "are divsible by 3.");
else
System.out.println(n+ "/t and /t" +sum+ "/t are indivisible by 3.");
if(div == 3 && div2 !=3)
System.out.println("The famous statement is wrong!");
else
if(div != 3 && div2 == 3)
System.out.println("The famouse statement is wrong!");
else
}
}