Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.List;

import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;

public class Main {
    public static void main(String[] args) throws Exception {
        ScriptEngineManager mgr = new ScriptEngineManager();
        List<ScriptEngineFactory> engines = mgr.getEngineFactories();
        for (ScriptEngineFactory engine : engines) {
            System.out.println(engine.getEngineName());
            for (String n : engine.getNames()) {
                System.out.println("Short name : " + n);
            }
        }
    }
}