> For the complete documentation index, see [llms.txt](https://unitsofmeasurement.gitbook.io/uom-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unitsofmeasurement.gitbook.io/uom-guide/advanced/jvm-lang.md).

# 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.

{% tabs %}
{% tab title="Java" %}
Here is how to print a message to `stdout` with Java.

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

{% endtab %}

{% tab title="Kotlin" %}
Here is how to print a message to `stdout` with Kotlin.

```kotlin
println("My first method")
```

{% endtab %}
{% endtabs %}

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

```bash
$ My first method
```
