fork download
  1. public class MainActivity extends Activity {
  2.  
  3. @Override
  4. protected void onCreate(Bundle savedInstanceState) {
  5. //*
  6. android.os.Debug.waitForDebugger();
  7. //*/
  8. super.onCreate(savedInstanceState);
  9. Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
  10. setContentView(screen);
  11. Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate(screen, 1, 500, TimeUnit.MILLISECONDS);
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class MainActivity is public, should be declared in a file named MainActivity.java
public class MainActivity extends Activity {
       ^
Main.java:1: error: cannot find symbol
public class MainActivity extends Activity {
                                  ^
  symbol: class Activity
Main.java:4: error: cannot find symbol
	protected void onCreate(Bundle savedInstanceState) {
	                        ^
  symbol:   class Bundle
  location: class MainActivity
Main.java:6: error: package android.os does not exist
		android.os.Debug.waitForDebugger();
		          ^
Main.java:8: error: cannot find symbol
		super.onCreate(savedInstanceState);
		^
  symbol:   variable super
  location: class MainActivity
Main.java:9: error: cannot find symbol
		Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
		^
  symbol:   class Screen
  location: class MainActivity
Main.java:9: error: cannot find symbol
		Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
		                    ^
  symbol:   class Screen
  location: class MainActivity
Main.java:9: error: cannot find symbol
		Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
		                                 ^
  symbol:   class WindowManager
  location: class MainActivity
Main.java:9: error: cannot find symbol
		Screen screen = new Screen(this,(WindowManager)getSystemService(WINDOW_SERVICE));
		                                                                ^
  symbol:   variable WINDOW_SERVICE
  location: class MainActivity
Main.java:11: error: cannot find symbol
		Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate(screen, 1, 500, TimeUnit.MILLISECONDS);
		                                                                                 ^
  symbol:   variable TimeUnit
  location: class MainActivity
Main.java:11: error: cannot find symbol
		Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate(screen, 1, 500, TimeUnit.MILLISECONDS);
		^
  symbol:   variable Executors
  location: class MainActivity
Main.java:3: error: method does not override or implement a method from a supertype
	@Override
	^
12 errors
stdout
Standard output is empty