Folks, I have an issue with the Learn Intermediate Java course. I hoped it would be a continuation of Learn Java, but it seems to be built on something more than that! Besides, it contain at least one inaccuracy. A few examples (I just started it)
-
In 1.2 Codecademy says: “System.out.println() prints output to a new line.” No, it doesn’t! It prints and then adds a new line. What is written in parentheses is not necessarily “printed to a new line”
-
In the same section, it told me to “import the Java IO class” which I hadn’t been taught (it would teach me to do so in 1.4)
-
In 1.3, I was asked to use the .next() method which I hadn’t been taught
-
In 1.4, I was asked to “throw an IOException”. They had taught me what an exception is in Learn Java, but not what “throwing” an exception means and why and how I am supposed to do it
-
In 1.4, Codecademy writes this piece of code. Why should i be (not) equal to -1? What is (char), exactly? Not the datatype itself, but putting it in front of a variable in parenthese
int i = 0;
// A loop to access each character
while((i = inputFile.read()) != -1) {
// Printing each character as it’s reached
System.out.print((char)i);
I don’t know, I’m a bit disappointed at this sloppiness. Any thoughts?..