Show Groovy console
Code: "groovy_console.groovy"
Programming language: Groovy
DMelt Version 1. Last modified: 05/25/2016. License: Free
http://jwork.org/dmelt/code/cache/groovy_console_453.groovy
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


/*
@Grab(group='commons-lang', module='commons-lang', version='2.4')
 import org.apache.commons.lang.WordUtils
 println "Hello ${WordUtils.capitalize('world')}"
*/

import groovy.ui.Console;

    Console console = new Console();
 //   console.setVariable("var1", getValueOfVar1());
 //   console.setVariable("var2", getValueOfVar2());
    console.run();