Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test implements Runnable {
- public static void main(String[] d) {
- Test t = new Test();
- Thread th = new Thread(t);
- th.start();
- }
- public void run() {
- int z = 0;
- for (long counter = 0; counter < 1000000000L; counter++) {
- z++;
- }
- System.out.println("Ended");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment