Ahmad Auada wrote:Im so confused! What on earth is system.in? Is it an object of some sort?
Welcome, Ahmad. Henry's answer is correct. Let me add that, in
Java, case matters. So, "System.in" refers to a static variable that is a member of the "System" class. There is no "system" class in the Java libraries (and it is universal practice to use a capital letter as the first letter of a class name). So, when you use it, remember to capitalize the "S" in "System." Your code won't compile if you don't (unless you have a variable of your own, named "system," which would probably just be confusing in most cases).