Java: Nashorn/JavaScript function to navigate Java Objects as structures

$c: a nashorn javascript function to navigate inside the structure of any Java Object. Designed for nudge4j. https://lorenzoongithub.github.io/nudge4j/ Read more

Similar

Java 15: New and Notable

JDK 15 hit General Availability today. While I spend most of my time in Kotlin these days, I do keep a close on Java, as it still has a special place in my heart, so I thought I’d make a quick post highlighting some of its new features. :) There are quite... (more…)

Read more »

How to “Rock Paper Scissors” in Java

The challenge Let’s play Rock Paper Scissors! You have to return which player won! In case of a draw return Draw!. Examples: The rules of the game Rock Paper Scissors The rules of the game Rock Paper Scissors is quite simple. Rock beats scissors, scissors... (more…)

Read more »

Comparing Objects in Java

TLDR; Java has a few different ways of comparing variables and objects with one another. ==, equals(), compareTo() and compare(). Java provides various operators such as == and != which check for equality and inequality respectively. They are used in a pr... (more…)

Read more »