Blog of Frank Delporte

Deep dive into bits, bytes, shorts, ints, longs, signed, and unsigned with Java

On the Pi4J discussion list, someone recently asked what the best and easiest way is in Java to convert a byte value. In Java, there is no distinction between signed and unsigned bytes, which can be confusing. My book “Getting Started with Java on the Raspberry Pi” contains an explanation about this, and I am happy to share it in this post with some more info and code examples…

JavaFX with Kotlin versus Java

Recently I have been experimenting with the combination of JavaFX and Kotlin. As Kotlin also runs on the Java Virtual Machine (JVM) and is a very close sister of Java, the switch is straightforward. I’m not making full use of what Kotlin can offer (non-blocking coroutines for example) as this is still a learning path for me… But I want to show you in this tutorial the difference in code style.

How we almost missed a plane in Kazakhstan, but OpenJDK could have saved us...

In August, our family vacation brought us to Kazakhstan. An important trip, as it is the birth country of our (now) 14y son. It was over 13 years that we had been there and we planned to go back earlier, but some stupid virus messed up everyones life a few years ago… So finally, early this year, we decided to start organizing our trip. Or to be fully honest, we asked Ardjan of “Kazachstan Reizen” to do that for you. And we had an amazing trip, visited different cities and national parks, and had a fantastic time.

Page 1 of 18