Tag: java
-
Parse Excel with Kotlin
I want to share how to parse excel files using kotlin and apache poi java lib. repository can be found here. This example will parse a sheet with several cell type (number, string, date). The basic ideas are:1. get the Workbook instance by instantiating XSSFWorkbook(file: File)2. get the Sheet instance by call workbook.getSheetAt(idx: Int) or…
-
Android Dependency Injection Using Dagger 2
Dagger 2 is a dependency injection library that relies heavily on annotation preprocessing to automatically generate a series of classes that provide dependencies to various parts of your application. The preprocessing occurs as part of compilation. The class files that are created are human readable — some are meant to be referenced just like any other java classes, others…