I need help with a self-wrtitten code

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
Classes: Syntax excercise 2/13

<In what way does your code behave incorrectly? Include ALL error messages.>

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"); } 
 
 
}

}

<do not remove the three backticks above>

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)

1 Like

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