Math Magic - Don't know what I'm doing wrong


#1



Magic.java:13: error: class, interface, or enum expected
System.out.printIn(stepSix)
^
1 error


public class Magic {
	public static void main(String[] args) {
int myNumber = 2;
int stepOne = myNumber * stepOne;
int stepTwo = stepTwo + stepOne;
int stepThree = stepTwo / myNumber;
int stepFour = stepThree + 17;
int stepFive = stepFour - myNumber;
int stepSix = stepFive / 6; 
    System.out.printIn(stepSix)
	//Math Magic Bruh
	}
}


#2

Your code doesn't match your error message.


#3

I don't know what to tell you. It's the only error that comes up.Here's the exercise


#5

Never mind I got. I messed up the first few lines.


#6

Well in some way there were two different code files, where one was compiled but the other one was being considered with regard to the error message.

And the very obvious way to proceed from that is to compile and view the same code


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.