Previous Lecture | Lecture 11 | Next Lecture |
Lecture 11, Tue 11/07
-Xlint:unchecked, sockets, ports
Today we reviewed code from this repo:
We discussed the -Xlint:unchecked
issue
We mentioned briefly how you can compile and run the code in the repo using plain old java commands.
To find classes that have a main method, use the grep
command with -r
(recursive) flag on the src
directory:
grep -r 'public static void main' src
Then:
ant compile
java -cp build chap15.NameOfClassGoesHere
We discussed that the chap15 refers to the “package” in which the code is located.
We also started a discussion of the port number issue, as discussed here: