All tutorials
The language and the JDK: records, encryption, properties files and what each LTS release changed.
- AES encryption in Java: strings, files and objects
Encrypt and decrypt strings, files and objects in Java with AES-GCM: key generation, random IVs, Base64, password-based keys with PBKDF2, and the ECB trap to avoid.
- Java records explained with examples
Java records with examples: what the compiler generates, compact constructors for validation, immutability and defensive copies, record patterns in Java 21, and when not to use a record.
- Java 21 features developers actually use
The Java 21 LTS features that change everyday code: virtual threads, pattern matching for switch, record patterns, sequenced collections and new String and Math methods, with examples and upgrade notes.
- How to read a properties file in Java, and on Android
Read and write .properties files in Java from the classpath or a file path, handle UTF-8 correctly, add typed getters and defaults, and load properties from assets on Android.
- Encrypt and Decrypt Files in Java Using Cipher Class and RSA
Encrypt and decrypt files in Java using Cipher class and RSA asymmetric key pairs: public key encryption and private key decryption.
- String Encryption and Decryption in Java Using Cipher Class
How to encrypt and decrypt strings in Java using the Cipher class, secret keys, Base64 encoding, and symmetric algorithms.
- How to Install Core Java on Windows
Step-by-step guide to installing the Java Development Kit (JDK) on Windows and setting up JAVA_HOME environment variables.
- Read Properties File in JSP
How to load and read configuration values from a .properties file in a JavaServer Pages (JSP) web application.
Building and shipping Android apps: signed APKs and app bundles, splash screens, ViewPager2 and Retrofit.
- ViewPager with circle indicator in Android
Add a dots page indicator to ViewPager2 with TabLayout and TabLayoutMediator, no third-party library, then build the same pager with dots in Jetpack Compose.
- Android splash screen with the SplashScreen API
Add a splash screen with the Android 12 SplashScreen API and the core-splashscreen library, keep it up while data loads, size the icon correctly and migrate from a SplashActivity.
- How to make an APK file in Android Studio
Build a debug, unsigned or signed APK and an Android App Bundle in Android Studio or with Gradle, create an upload keystore and set up Play App Signing.
- Call a REST API from Android with Retrofit and Kotlin
Consume a REST API in an Android app with Retrofit, kotlinx.serialization and coroutines: define the API, parse JSON, handle errors, log requests and add authentication.
- Android Navigation Drawer with Fragments and Kotlin
Implement a modern navigation drawer in Android using Kotlin, Fragments, DrawerLayout and NavigationView.
- Kotlin Android Studio Hello World Example
Build a Hello World Android application in Kotlin using Android Studio with Kotlin plugin configuration.
- Introduction to Kotlin Programming Language
Introduction to the Kotlin programming language on the JVM, syntax features, null safety, and benefits for Android.
- UI Validations in Android with EditText
Implement form validation in Android: validate required fields, email format, and password length on EditText controls.
- How to Pass Data From Activity to Activity in Android
How to pass data between Android activities using Intent extras and Bundle with Kotlin and Java code.
- Introduction to iOS App Development
Getting started guide for iOS application development: developer tools, Xcode requirements, and iOS platform basics.
- Hello World App Using Android Studio
Create and run your first Android Hello World application in Android Studio with step-by-step project configuration.
- How to Setup Android Studio for Android Development
System requirements and step-by-step setup guide for installing Android Studio and configuring the Android SDK.
Apache POI, JUnit 5, Spring Boot and the other libraries Java projects lean on.
- Apache POI tutorial: read, write and style Excel files in Java
Create, style and read Excel .xlsx files in Java with Apache POI 5: headers, dates, number formats, formulas, frozen panes, reading cells safely and streaming large sheets with SXSSF.
- Styling Excel Sheets Using Java and Apache POI
Apply styles, fonts, foreground colors, borders, and alignments to Excel cells in Java using Apache POI XSSFCellStyle.
- How to Read Data From Excel File Using POI and Java
Read rows and columns from Excel .xlsx spreadsheets using Apache POI, DataFormatter, and FileInputStream in Java.
- Introduction to Unit Testing in Java
Unit testing fundamentals for software developers: why unit test, testing phases, and writing automated tests in Java.
- Writing Your First JUnit Test in Java
Getting started with unit testing in Java: write your first JUnit test case, assertions, and test runner setup.
- How to Create a Dynamic Web Project in Eclipse
Step-by-step tutorial on creating a Java Dynamic Web Project in Eclipse IDE and configuring Apache Tomcat server.
- Introduction to Spring Boot Framework
Introduction to Spring Boot: auto-configuration, starter dependencies, embedded Tomcat, and building your first app.
- Consuming RESTful Web Services with Basic Authentication
How to consume RESTful web services secured with HTTP Basic Authentication in Java using standard HTTP clients.
- RESTful Web Services Basic Authentication in Java
Securing Java RESTful web services with HTTP Basic Authentication in Tomcat using web.xml security constraints.
- RESTful API Best Practices and Design Guidelines
Comprehensive REST API design best practices: resource URIs, HTTP verbs, status codes, versioning, and security.
- Introduction to Apache Struts 2 Framework
Getting started with the Apache Struts 2 MVC framework for Java: actions, struts.xml configuration, and interceptors.
- Introduction to RESTful Web Services
Core concepts of REST (Representational State Transfer), stateless architecture, and HTTP methods in web APIs.
- Introduction to JavaServer Pages (JSP)
Fundamentals of JavaServer Pages (JSP): scriptlets, expressions, directives, and building dynamic web pages in Java.
- Introduction to JavaServer Faces (JSF)
Overview of the JavaServer Faces (JSF) component-based MVC framework for Java web applications with Managed Beans.
- How to Install Couchbase Server
Getting started with Couchbase Server NoSQL document database, architecture benefits, and installation guide.
- Insert Document in Couchbase Using Java
How to connect to Couchbase Server and insert JSON documents into a Couchbase bucket using the official Java SDK.
- RESTful Web Services Using Jersey in Java
Create RESTful web services in Java with Jersey JAX-RS, Tomcat, and test GET and POST endpoints with jQuery AJAX.
- Load Data While Scrolling Down Using Struts 2 and jQuery
Implement infinite scroll pagination to load database records as you scroll down using jQuery AJAX and Struts 2.
- Dynamic Autocomplete Using jQuery, Struts 2 and Oracle
Implement database-backed dynamic autocomplete search in Apache Struts 2 using jQuery UI and an Oracle database backend.
- Java Job Scheduler: Quartz Scheduler Tutorial
Schedule recurring background jobs in Java using the Quartz Scheduler library: Job, JobDetail, and CronTrigger setup.
- Dynamic Accordion Menu Using Oracle, Java EE and jQuery
Build a database-driven dynamic accordion menu in JSP using an Oracle database, Java JDBC backend, and jQuery.