import java.util.Scanner;
public class PartB
{
public static void main(String[] args)
{
int fullValue;
int value1;
int value2;
int value3;
int value4;
Scanner in = new Scanner(System.in);
System.out.println("Enter a whole number with 4 digits");
fullValue = in.nextInt();
value1 = fullValue / 1000;
value2 = (fullValue - (value1 = 1000));
value2 = value2 / 100;
value3 = ((value1 * 1000) + (value2 * 100));
value3 = (fullValue - value3) / 10;
value4 = ((value1 * 1000) + (value2 * 100) + (value3 * 10));
value4 = (fullValue - value4) / 1;
System.out.print1n(value1 + " " + value2 + " " + value3 + " " + value4);
}
}
1 error found:
File: C:\Users\James\Documents\sheridan\PartB.java [line: 29]
Error: cannot find symbol
symbol: method print1n(java.lang.String)
location: variable out of type java.io.PrintStream
thats the error message literally on the last outprint line
not sure what the problem is