JSCH / CATATAN</>↗JSch04 Jan 2022
To connect to an SSH server using JSch (Java Secure Channel), you need to perform the following steps: Steps to Connect to SSH Server Using JSch Add the JSch library to your project dependencies. If using Maven, add the following dependency: <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.55</version> </dependency> If not using a dependency manager, download jsch.jar and […]
E-ICEBLUE SPIRE / CATATAN</>↗E-iceblue Spire16 Jun 2021
The following example will show you how to use the E-iceblue‘s free Spire.Doc for Java to perform mail merge operations on MS Word documents. Create Maven Project and Add Dependencies Create a maven project and add the following dependencies and repositories in your project’s pom.xml file. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P...
GENERAL / CATATAN</>↗General31 Mei 2021
Java development requires more than just experience. Learning from the experiences of other people is an invaluable habit that will propel your programming career to another level. Luckily for Java lovers, some developers have offered their best insights on Java programming in books. Here are the top Java performance books that will enlighten your craft. […]
ANDROID MISC / CATATAN</>↗Android Misc20 Mei 2021
The following Android code snippet shows you how to customize the input value format of an EditText component for accepting currency number. To format the input value we will create a text watcher class called MoneyTextWatcher, this class implements of the android.text.TextWatcher interface. In the MoneyTextWatcher class we implement the afterTextChanged(EditText s) method, in this […]
ANDROID MISC / CATATAN</>↗Android Misc19 Mei 2021
The following code snippets shows you how to get a Device ID of an Android phone. To be able to read the Device ID you need to update the AndroidManifest.xml file and add the READ_PHONE_STATE permission. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.kodejava.android"> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> … … </manifest> package org.kodejava.android; import android.Mani...
ANDROID MISC / CATATAN</>↗Android Misc15 Mei 2021
In this example we are going to create a simple Android application to print texts to a Bluetooth thermal printer. We’ll be using the Android library for ESC/POS Thermal Printer to develop this example. We begin by creating an Android project with an Empty Activity. After the project is created we need to edit the […]