Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.ComponentOrientation;
import java.util.Locale;

public class Main {

    public static void main(String[] argv) throws Exception {
        Locale myLocale = Locale.getDefault();
        ComponentOrientation ce = ComponentOrientation.getOrientation(myLocale);
        System.out.println("Is horizontal? " + ce.isHorizontal());
        System.out.println("Is left to right? " + ce.isLeftToRight());
    }
}