I am getting an error on the 'start' in the (start + finish) at the bottom. The only way to fix it is to add "int start = inputFn.nextInt();" below ' Scanner inputFn = new Scanner(System.in);' but that screws it all up. I was able to fix it before but I forgot how I did it. Please help.
public static void main(String eth[]){
System.out.println("Please Enter An Integer:");
Scanner inputFn = new Scanner(System.in);
if (inputFn.hasNextInt()){
}else{
int start = inputFn.nextInt();
System.out.print("Play By The Rules And Enter An Integer");
}
System.out.println("Please Enter An Integer:");
Scanner inputSn = new Scanner(System.in);
int finish = inputSn.nextInt();
int answer = (start + finish);
System.out.println(answer);
}
}