Units of Measurement Guide
  • Introduction
  • Overview
    • Introduction
  • Getting Started
    • Getting Started with Indriya
  • Formatting and Parsing
    • Formatting Units
    • Formatting Quantities
  • Advanced
    • Different JVM Languages
Powered by GitBook
On this page
  1. Advanced

Different JVM Languages

Methods allow you to smoothly display code examples in different JVM languages.

My first method

My first method exposes how to print a message in Java and Kotlin.

Here is how to print a message to stdout with Java.

System.out.println("My first method");

Here is how to print a message to stdout with Kotlin.

println("My first method")

Whatever language you are using, the result will be the same.

$ My first method
PreviousFormatting Quantities

Last updated 7 years ago