HOW TO: read all files in a directory

In unix-based systems, a directory is really just a different type of file. If you create a File object out of a “path/to/some/files” there is an easy way to get a listing of all the files in an array.
WARNING: there are such things as “hidden files.” Hidden files begin with a ‘dot’ (.). For example, […]

HOW TO: read command-line arguments

In Java any arguments listed on the command line are passed to the main method as an array of Strings.   The code below shows a simple calculator program that operates on the command line arguments.  You should be able to infer everything you need to know from this example.To run it…In BlueJ: run main() […]