I need help with a self-wrtitten code


#1



Classes: Syntax excercise 2/13

Dog.java:4: error: cannot find symbol
Int juliette = 14;
^
symbol: class Int
location: class Dog
Dog.java:6: error: cannot find symbol
if (juliette > 12) { System.out.printIn("Jezus jij bent al oud"); }
^
symbol: method printIn(String)
location: variable out of type PrintStream
Dog.java:9: error: cannot find symbol
else { System.out.printIn("Wat ben jij nog een jong kippetje"); }
^
symbol: method printIn(String)
location: variable out of type PrintStream
3 errors


class Dog{
  public static void main(String[] args) {
  
    Int juliette = 14;
    
    if (juliette > 12) { System.out.printIn("Jezus jij bent al oud"); }
    
     
    else { System.out.printIn("Wat ben jij nog een jong kippetje"); } 
     
     
	}

}


#2

Int juliette = 14;

here Int should be int (small case i)

and System.out.printIn should be System.out.println(small case l not I)


#3

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