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[] argv) throws Exception {

    ResourceBundle rb = ResourceBundle.getBundle("res.ResourcesDynamic", Locale.getDefault());
    System.out.println(rb.getString("title"));
  }
}

[RresourcesDynamic.properties]

title=Example

[RresourcesDynamic_en.properties]

title=Example

[ResourcesDynamic_fr.properties]

title=Exemple

[ResourcesDynamic_de.properties]

title=Beispiel