Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // the placement of parenthesis and curly braces are critical
- Thread t1 = new Thread(new Runnable() {
- // code goes here
- });
- // or for a more complete example:
- Thread t1 = new Thread(new Runnable() {
- @Override
- public void run() {
- // code goes here
- }
- });
Add Comment
Please, Sign In to add comment