Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Locale;
import java.util.ResourceBundle;

public class Main {

    public static void main(String[] args) {

        ClassLoader cl = ClassLoader.getSystemClassLoader();

        ResourceBundle bundle = ResourceBundle.getBundle("hello", Locale.US, cl);

        System.out.println(bundle.getString("hello"));

    }
}