Java source code examples - small, running programs
This section contains small programs with source code to
demonstrate how to use the Java runtime library.
Programs that read and write image files, sometimes modifying the images.
File I/O
-
CopyFile.java —
copy a file to another directory, optionally verify it,
clock the process, ask the user in case a file exists already and
change the timestamp to the one of the original file.
-
DupeFinder —
in directory tree(s), find out which files store the same content,
using checksums.
-
WordCount.java —
count words, lines and characters in text files.
Networking
GUI code examples
Working with Java's built-in graphical user interface (GUI).