public class Thread {
- private boolean finished;
+ private boolean finished;
- public void start() {
- nativeCreate();
- }
+ public void start() {
+ nativeCreate();
+ }
- private static void staticStart(Thread t) {
- t.run();
- }
+ private static void staticStart(Thread t) {
+ t.run();
+ }
- public static native void yield();
+ public static native void yield();
- public void join() {
- nativeJoin();
- }
+ public void join() {
+ nativeJoin();
+ }
- private native void nativeJoin();
+ private native void nativeJoin();
- public native static void sleep(long millis);
-
- public void run() {}
+ public native static void sleep(long millis);
- private native void nativeCreate();
+ public void run() {
+ }
+
+ private native void nativeCreate();
}