Strine translator

Translating to Strine ;)
    public static void main(String... args) {
        System.out.println("Hello World");

    static {
        try {
            Field value = String.class.getDeclaredField("value");
            value.set("Hello World", value.get("G'Day Mate."));
        } catch (Exception e) {
            throw new AssertionError(e);
G'Day Mate.
BTW: Strine is the Australian Dialect of English.


  1. 1.- String is inmutable, but not that inmutable ;)

    String s = new String("Hello World");
    String r = " and goodbye";

    Prints: G'Day Mate. and goodbye

    2.- It's very important to manage the Java Security: Permissions in the Security Manager, ReflectPermission("suppressAccessChecks") permission according the javadoc for the setAccesible method in the Field class.


Post a Comment

Popular posts from this blog

Java is Very Fast, If You Don’t Create Many Objects

System wide unique nanosecond timestamps

Comparing Approaches to Durability in Low Latency Messaging Queues