This article demonstrates how to read files written in various logographic characters like Kanji (from Japan), Hanja (from Korea), and Hanzi (from China) using UTF-8 encoding.
Android Dagger2 greenDAO ORM With Service And DAO Layers
This post shows how to create a sample Android app that uses Dagger2 and greenDAO ORM. The codes are also organized in service and DAO layers. Previously, we touched briefly on greenDAO ORM for SQLite. This time we’re using the
Android greenDAO ORM For SQLite Example
This post shows how to use greenDAO ORM for SQLite in Android using a demo app. We start with a simple Android project in the Android Studio, create a few entities, save to and read data from the database. Requirements
Spring Dependency Injection Examples Without Spring Boot
The Spring Framework has come a long way. Nowadays, it is way easier to start a Java project with the Spring Framework using Spring Boot. In the past, we used to download Spring individual jar files and configure the dependencies
Create Java Project Using Maven in Command Line
This post shows how to create a Java project with Apache Maven in the command line. The content may be old, and a myriad of people may already know how this, but it is still worth learning the basics. Requirements
Java Null Pointer Exception Processing With Try-Catch
In Java, we can handle exceptional events using the try-catch. But not all exceptions are the same. Java Null Pointer Exception processing requires using try-catch in a way that is unchecked during compilation. Checked And Unchecked Java Exceptions We refer
Java, XSLT, and XML with Namespaces
When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.
Java 9 Stream filter, takeWhile, dropWhile methods
This post demonstrates how to use the new methods – takeWhile and dropWhile – of the Stream interface in Java 9 Jigsaw. We’ll touch briefly on Stream.filter(Predicate p) just to get comfortable before trying out the new methods.
Java – 3 ways to implement a Generic Interface
A Generic Interface is an interface that makes use of formal type parameters. It uses Generics. There are 3 ways to implement a Generic Interface.
Java Formal Type Parameter Methods We Can Invoke
With Java Generics, we name Java Formal Type Parameter T, E, K, and V conventionally. If an instance of a Format Type Parameter, what available methods we can invoke on them? Java Formal Type Parameter is Object Formal Type Parameters