SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

MAIL / NOTES</>↗
Mail19 Jan 2014

How do I create a simple mail client program in Swing?

The code snippet below show you how to create a simple Java Swing application that can be used to send an e-mail. The program allows user to supply the from email address, to email address, the subject and the message of the email. User need to select the available SMTP server to connect to and […]

Wayan · 4 min read
MAIL / NOTES</>↗
Mail17 Jan 2014

What are the system properties used for sending email?

Here are a list of system properties that can be used to send an e-mail using the JavaMail API. Property Default Value Description mail.host Define the host name of the mail server. mail.smtp.host Define the host name of the SMTP server; this will overrides the mail.host for SMTP connections only. mail._protocol_.host Define the host name […]

Wayan · 2 min read
MAIL / NOTES</>↗
Mail16 Jan 2014

How do I send an HTML email?

The following code snippets show you how to send an HTML e-mail. We begin by defining the e-mail information such as the from address, to address and the subject. The next step it to create a Properties that will be used to create a mail Session object. Having a Session object we can then create […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API18 Dec 2013

How do I read last n characters from a file?

In the following post you will learn how to read last n characters from a file. The JDK 7 introduces a new SeekableByteChannel interface which allows its implementation to change the position and the size of the byte channel. One of its implementation is the FileChannel class (java.nio.channels.FileChannel). The FileChannel class make it possible to […]

Wayan · 2 min read
BASIC / NOTES</>↗
Basic19 Oct 2013

Java SE Installation Tutorial

Summary: This tutorial is about Java Development Kit (JDK) Standard Edition installation guide. After reading and executing this tutorial you will be able to install the JDK and setting the basic configuration for running the Java compiler from the command line. You will also learn how to create, compile and run a simple Hello World […]

Wayan · 6 min read
ZIP AND GZIP / NOTES</>↗
Zip and GZIP27 Sep 2013

How do I compress or zip a directory recursively?

In this example you are going to learn how to zip or compress a directory recursively. The zip file format allows us to compress multiple files. We use the java.util.zip.ZipOutputStream to compress the file. Each entry in the zip file is represented by the java.util.zip.ZipEntry class. To compress a directory we must first get all […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.