<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>settings on Notities</title><link>https://www.vandenboom.icu/en/tags/settings/</link><description>Recent content in settings on Notities</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 05 Jan 2025 20:09:27 +0000</lastBuildDate><atom:link href="https://www.vandenboom.icu/en/tags/settings/index.xml" rel="self" type="application/rss+xml"/><item><title>Java convert a variabele for it to be printed in a price format related to country settings</title><link>https://www.vandenboom.icu/en/blog/2025-java-convert-a-variabele-for-it-to-be-printed-in-a-price-format-related-to-country-settings/</link><pubDate>Sun, 05 Jan 2025 20:09:27 +0000</pubDate><guid>https://www.vandenboom.icu/en/blog/2025-java-convert-a-variabele-for-it-to-be-printed-in-a-price-format-related-to-country-settings/</guid><description>F﻿or Dutch Euro use: .getCurrencyInstance(new Locale(&amp;ldquo;nl&amp;rdquo;, &amp;ldquo;NL&amp;rdquo;))
F﻿or Swiss Franc use: .getCurrencyInstance(new Locale(&amp;ldquo;de&amp;rdquo;, &amp;ldquo;CH&amp;rdquo;))
import java.text.NumberFormat; import java.util.Locale; public class prog_002_variables { public static void main(String[] args){ String message; int year; double prijs; message = &amp;#34;De beste wensen voor: &amp;#34;; year = 2025; prijs = 2.50; // Combine the creation of the Locale and the NumberFormat in one line NumberFormat currencyFormat; currencyFormat = NumberFormat.getCurrencyInstance(new Locale(&amp;#34;nl&amp;#34;, &amp;#34;NL&amp;#34;)); System.out.println(message + year + &amp;#34;, een frikandel kost nu: &amp;#34; + currencyFormat.</description></item></channel></rss>