fubarable

Untitled

Oct 24th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. // the placement of parenthesis and curly braces are critical
  2. Thread t1 = new Thread(new Runnable() {
  3.     // code goes here
  4. });
  5.  
  6. // or for a more complete example:
  7. Thread t1 = new Thread(new Runnable() {
  8.     @Override
  9.     public void run() {
  10.         // code goes here
  11.     }
  12. });
Add Comment
Please, Sign In to add comment