Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;

public class Main {

    public static void main(String[] args) {

        ResourceBundle.Control rbc = ResourceBundle.Control.getControl(Control.FORMAT_DEFAULT);

        ResourceBundle bundle = ResourceBundle.getBundle("hello", rbc);

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

    }
}