Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean doLogin() {
- try {
- somemethodForLogin();
- return true;
- } catch (Exception e) {
- e.printStackTrace();
- return false;
- }
- }
- new java.util.Timer().schedule(
- new java.util.TimerTask() {
- @Override
- public void run() {
- System.out.println("Returning after 8 seconds wait");
- }
- },
- 8000
- );
Add Comment
Please, Sign In to add comment