Skip to content

Commit 22d3c2d

Browse files
docs: updated the example code at README to the latest release
1 parent d30a71e commit 22d3c2d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Example scenario: We want to type "Hey", press enter, and click the mouse at (10
1111

1212
### Modern Robot
1313
```java
14-
//can and should be reused
14+
//should be reused
1515
Keyboard keyboard = HardwareFactory.createKeyboard();
1616
Mouse mouse = HardwareFactory.createMouse();
1717

18-
keyboard.tap("Hey");
19-
keyboard.tap(ENTER); //static import of FunctionKey
18+
keyboard.type("Hey");
19+
keyboard.press(ENTER); //static import of KeyboardFunction
2020

2121
mouse.performAt(LEFT_CLICK, new Point2D(100, 100)); //static import of MouseAction
2222
```

0 commit comments

Comments
 (0)