Code Snippets

Here you find some Java code, written by myself.


The Java snippets here can be executed as they are.
Just copy them in an IDE (e.g. Eclipse) and compile!

Like all other content on this site, the code published here is licensed under the Mailware license.
So, please send me a short email if you think this stuff is worth it. ;-)


Title Description Code
Client/Server chat This code connects a client to a server and makes it possible to send messages between them. Click here
File searcher Searches and finds files and directories in your local file system. Click here
Word counter with BoxLayout This Java code creates a GUI with a BoxLayout. If you click on the button, the words in the text area are counted. Click here
Word counter with BorderLayout This Java code creates a GUI with a BorderLayout. If you click on the button, the words in the text area are counted. Click here
Twitter timeline reader This Java code reads the public timeline of Twitter and writes the text of the tweets to the console. Click here