Buy My Book!
Games
Games (2)
Github
Other Posts
Recent Posts: This Could Be Better
Creating, Building, and Running a Simple Program in the Go Language
Creating a Hello World Program in .NET Core with Visual Studio Code
Creating a Template-Driven Component in Angular
Installing and Running Angular on Windows 10
Creating an ASP.NET MVC Application in Visual Studio
Running Linux in a Virtual Machine using QEMU on Windows
Creating an Ext4 Filesystem Image File
Compiling Java Packages and Subpackages from the Command Line
An Image Combiner in JavaScript
Hello World in TypeScript with Classes in a Web Browser
Archives
- March 2023 (1)
- February 2023 (4)
- November 2021 (1)
- October 2021 (2)
- September 2020 (1)
- June 2020 (1)
- November 2019 (1)
- July 2019 (1)
- April 2019 (1)
- March 2019 (1)
- February 2019 (1)
- December 2018 (1)
- October 2018 (2)
- September 2018 (2)
- August 2018 (1)
- March 2018 (1)
- February 2018 (3)
- January 2018 (4)
- December 2017 (2)
- November 2017 (3)
- October 2017 (3)
- September 2017 (2)
- August 2017 (3)
- July 2017 (6)
- June 2017 (5)
- May 2017 (1)
- March 2017 (3)
- February 2017 (7)
- January 2017 (3)
- December 2016 (2)
- November 2016 (1)
- October 2016 (6)
- August 2016 (6)
- July 2016 (1)
- May 2016 (11)
- April 2016 (1)
- March 2016 (2)
- February 2016 (3)
- November 2015 (5)
- October 2015 (3)
- September 2015 (6)
- August 2015 (4)
- June 2015 (2)
- April 2015 (5)
- March 2015 (7)
- February 2015 (3)
- January 2015 (3)
- November 2014 (1)
- October 2014 (4)
- September 2014 (2)
- August 2014 (2)
- July 2014 (2)
- June 2014 (7)
- April 2014 (9)
- February 2014 (5)
- December 2013 (3)
- November 2013 (2)
- October 2013 (5)
- September 2013 (2)
- August 2013 (9)
- July 2013 (3)
- June 2013 (5)
- May 2013 (2)
- April 2013 (11)
- March 2013 (7)
- February 2013 (8)
- January 2013 (15)
- December 2012 (7)
- May 2012 (5)
- March 2012 (1)
- February 2012 (2)
- January 2012 (1)
- September 2011 (2)
- August 2011 (5)
- July 2011 (1)
- June 2011 (4)
- March 2011 (14)
Meta
Tag Archives: Java
Compiling Java Packages and Subpackages from the Command Line
The packaging system in Java can be tricky for the beginner to navigate. Follow the steps below to create, compile, and run a test program that creates a Java program whose classes belong to a root package and a subpackage. … Continue reading
Building a Java Program with Gradle
Follow the steps below to create and run a Java application in Gradle. These instructions assume a computer running Microsoft Windows. 1. If you have not already done so, download Java and a Java Development Kit. 2. In any convenient … Continue reading
Building a Java Program with Apache Maven
Follow the steps below to create, package, and run a simple Java application using Maven, a free automated build tool for Java maintained by the Apache Software Foundation. These instructions assume the computer is running a Microsoft Windows operating system. … Continue reading
Uncompressing Data with the Deflate Algorithm in Java
The code shown below is an implementation of the Deflate algorithm written by Nayuki Minase, and slightly simplified by myself. As of this writing, the original version can be obtained at the URL http://nayuki.eigenstate.org/page/simple-deflate-implementation. Specifically, I simplified it by squeezing … Continue reading
Programming a Simple Music Synthesizer in Java
The code given below uses the WavFile class from a previous post to build a text-to-music synthesizer. import java.io.*; import java.util.*; public class MusicSynthesisTest { public static void main(String[] args) { parseAndSynthesizeSong(); } private static void parseAndSynthesizeSong() { Music.Song songToSynthesize … Continue reading
Hello World in Android Using Eclipse
This tutorial is a simplified, or at least condensed, version of the equivalent tutorial pages on developer.android.com, which are mostly fine, but they aren’t quite brainless enough to suit me. Plus, for the latest version of Android there was a … Continue reading
Sending an Email with an Attachment Using JavaMail
1. Follow the steps in the previous post titled “Sending an Email from Java Using JavaMail and Apache James”, but replace the contents of the EmailTest.java file with the text below. The updated code attaches a copy of the source … Continue reading
Sending an Email from Java Using JavaMail and Apache James
Email! Get connected! The phrase “Email! Get connected!” is a registered trademark of This Could Be Better LLC, which is a company that doesn’t exist, and also it’s not a registered trademark because no one ever, um, registered it. All … Continue reading
Compressing and Uncompressing Data in Java Using Zlib
The Zlib data compression library is built into Java, and allows you to compress and decompress data. So, uh… ’nuff said? 1. If you have not already done so, download and install the Java Development Kit. Details are given in … Continue reading
Reading and Writing a BMP File Using Java
The Windows BMP file is a fairly simple file format, and doesn’t (necessarily) involve any compression, which makes it one of the easiest image file formats to actually, you know, understand. UPDATE 2012-12-14: Since this post has, much to my … Continue reading