Lecture 2 – January 13th Material
Discussed type of folder required
Sample folder label shown
Disk label requires: Name, Professor, Course
Students demonstrated programs
We discussed how to get jGrasp to use appropriate compiler and interpreter
We discussed the appropriate place for the prompt showing range of values
We discussed the proper bounds for the input
strictly between 0 and 101
inclusively between 1 and 100
Looked at professor’s version of Lab1 using BufferedReader class
Looked at professor’s version of Lab1 using Scanner class
Looked at professor’s code to print verses
Keyboard class can no longer be used
Went over professor’s version of deliverable Word file
Generated javadocs for professor’s Lab1e and PrintVerse classes
Looked at java API documentation for Scanner class
Pointed out that the Scanner class in the book is no longer accurate
create has been removed
Discussed IOException class briefly and that “throws IOException” must be
added to the header of main when BufferedReader is being used
Went over other classes used in program for input/output
BufferedReader
InputStreamReader
InputStream
Reader
System
Collected Lab1 printouts.
Homework due Tuesday will be posted
Friday