How to Write a Simple Android Wear OS Hello World Application

A few months back I treated myself to a new watch, and I decided to finally try a smartwatch. I haven’t thought that I’d use it as much as I ended up doing, but I noticed that the Android device lacks a few features that I’d previously found on the Apple Watch, most notably a native stocks app that helps keep track of my portfolio. Granted, I don’t know why I’d like to see my life savings disappear in real-time, but I decided to try and write a simple stock tracking app for Wear OS devices just for the sake of it. However, this article discusses how to get started with writing a custom program for Wear OS devices.

Continue reading How to Write a Simple Android Wear OS Hello World Application

Functional-Style Operations in Java with the Stream API

I discussed Java Lambda Expressions quite a time ago in another article. Those were not the only new thing that got implemented in Java 8. Besides Lambdas, Type-Annotations, and Default methods in interfaces, version 8 of the Java API added support for functional-style operations. Because I think that this is quite a rarely discussed feature, I decided to write this short introduction to the Java Stream API and how it can be used for basic functional-style programming in Java.

Continue reading Functional-Style Operations in Java with the Stream API

Regular expressions in Java

Introduction

You might remember that one article I wrote about Lambda expressions in Java last year. In that article I took a quick look at what Lambda expressions are and how you can use them in Java. This article was quite popular and I thought it’s about time that I write something about regular expressions here on nerdhut. However I only wanted to give you an introduction about regular expressions and how you can use them in your Java code to detect patterns in a text or to search for something. Continue reading Regular expressions in Java

Lambda expressions in Java

Introduction

They have been around for some years now and yet I’ve heard very little about them. Back then, when Java 8 was new, I took a quick look at what was new. And Java 8 was introducing Lambda expressions, that you could use in your code. But what are these Lambda expressions (sometimes also referred to as Lambda functions)? Should you be afraid of them? Should we all use them? Let’s find out! Continue reading Lambda expressions in Java