Acad uses Java 15 Make sure your version is close. - If you get a 'major/minor' error compiling, you need a newer version * The error is a result of a .class file with content newer than the interpreter. A Java program may be runnable without explicit compilation Println Quirk - Println allows type coercion, e.g. println(""+23+34); will definitely print 2334 * The first item being a string forces corcion of the rest. * However, println(23+34) may print 57 (I'm not sure) * println((23+34)) will print 57 Java does not equate int and char like C++. System.in is Java's stdin System.out is Java's stdout. toString() in the Object class can be used to control what is written if an object is println'd. - the default action is to write the type name, an @, and the object's address. - Closest thing to implementing << operator. The Java command line argument vector of strings does not include the executable name. Use parseInt() to convert sString to int. Much less typing: public static int readInt() throws java.io.IOException {BufferedReader DataIn = new BufferedReader(new InputStreamReader(System.in)); String Input=DataIn.readLine(); // return (Integer.valueOf(Input).intValue()); return (Integer.parseInt(Input)); } } // end of ReadInput Class The Java compiler uses the classpath to search for classes referred to in applications (written in Java). On acad, the .bash_profile in your root is read on login. This is how your preferred environment is established. Java Packages - Packages allow us to create libraries of whatever. - The top level of a package MUST be in a directory that is in the classpath. - Every item but the last in an import statement is the name of a package. * The last item is the name of a class in the package - An import string's content is mandated by the directory structure. - A package statement must have a path, . separated, from a directory in the classpath. Project 1 Objectives - Preliminary back end work for the term project - Get everyone to the somewhat same place with java. Acad web area - By Sunday at 6 PM, check if you have a web area on acad. It is a public_html directory under the root. Javadoc demos are under 421 directories on acad and the web.