Math Magic Trick - can't find symbols?


#1



Math Magic


I'm getting 4 error messages..

agic.java:7: error: cannot find symbol
Int stepThree= stepTwo / myNumber;
^
symbol: class Int
location: class Magic
Magic.java:8: error: cannot find symbol
Int stepFour= stepThree + 17;
^
symbol: class Int
location: class Magic
Magic.java:9: error: cannot find symbol
Int stepFive= stepFour - myNumber;
^
symbol: class Int
location: class Magic
Magic.java:10: error: cannot find symbol
Int stepSix= stepFive / 6;
^
symbol: class Int
location: class Magic
4 errors


public class Magic {
    public static void main(String[] args) {

    int myNumber= 11;
    int stepOne= myNumber * myNumber;
    int stepTwo= stepOne + myNumber;
    Int stepThree= stepTwo / myNumber;
    Int stepFour= stepThree + 17;
    Int stepFive= stepFour - myNumber;
    Int stepSix= stepFive / 6;
    
    System.out.println(stepSix);
        

    }
}


#2

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