Monday, November 7, 2011

Command line input


def input = System.console().&readLine
def pwd = System.console().&readPassword

String username = input("username: ");
String password = pwd("password: ");

No comments:

Post a Comment