Welcome to the Treehouse Community
Looking to learn something new?
ryann ma2,682 Points
I have an error. I wrote it just like the teacher wrote it but still
Picked up _JAVA_OPTIONS: -Xmx128m
^[[ATreeStory.java:13: error: incompatible types: String cannot be converted to boolean
String name = console.readline("Enter your name: ");
TreeStory.java:14: error: incompatible types: String cannot be converted to boolean
String adjective = console.readline("Enter your name: ");
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
As long as you initialized console, your code is correct, but you have to remember to camelcase. So readline should be readLine.
Console console = System.console(); String name = console.readLine("Enter your name:")