The issue for me right now is I am using eclipse and every time I use System.out.println(); to prompt the user for smooth it gives me an.
error immediate after. Additionally every time I write an assignment statement to declare a value for my variables it gives me an error. For both programs it gives me the error “cannot find symbol” when I hover the cursor over to look at whats wrong.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package four.digit;
/**
*
* @author Syed
*/
import java.util.Scanner;
public class FourDigit {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
}
Scanner keyboard = new Scanner(System.in);
System.out.println(“Enter a four digit number”);
int n1, n2, n3, n4, n5, n6, n7;
n1 = keyboard.nextInt();
n2 = n1/1000;
n3 = n1%1000;
n4 = n3/100;
n5 = n3%100;
n6 = n5/10;
n6 = n5%10;
System.out.println(n2);
System.out.println(n4);
System.out.println(n6);
System.out.println(n7);
}





