typeLine

static void typeLine(String chars)

Types the specified string and presses enter after

Parameters

chars

the string to type

static void typeLine(String desired, String current)

Types the specified string, pressing backspace if needed in order to go from the 'current' string to the 'desired' string. It then presses enter. Ex. if desired is "Iron ore" and current is "Iron b", this will press backspace once and then type "ore", then enter

Parameters

desired

the desired typed string

current

the currently typed string