fork download
  1. class main
  2. {
  3. /*
  4.   描画する絵を選択する処理
  5.   */
  6.  ThreadClass tc = new ThreadClass();
  7. tc.setDrawPattern(1);
  8.  tc.start();
  9. }
  10.  
  11. //スレッド
  12. public class ThreadClass extends Thread implements Runnable
  13. {
  14.  Handler hi = new Handler(Looper.getMainLooper());
  15.  public void run()
  16.  {
  17.   hi.post(new Runnable() {
  18.    public void run () {
  19.     //描画処理
  20.    }
  21.   });
  22.  }
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:6: illegal character: \12288
?ThreadClass tc = new ThreadClass();
^
Main.java:6: ';' expected
?ThreadClass tc = new ThreadClass();
 ^
Main.java:6: <identifier> expected
?ThreadClass tc = new ThreadClass();
               ^
Main.java:7: <identifier> expected
  tc.setDrawPattern(1);
                   ^
Main.java:7: illegal start of type
  tc.setDrawPattern(1);
                    ^
Main.java:8: illegal character: \12288
?tc.start();
^
Main.java:8: ';' expected
?tc.start();
 ^
Main.java:8: illegal start of type
?tc.start();
   ^
Main.java:14: illegal character: \12288
?Handler hi = new Handler(Looper.getMainLooper());
^
Main.java:14: ';' expected
?Handler hi = new Handler(Looper.getMainLooper());
 ^
Main.java:14: <identifier> expected
?Handler hi = new Handler(Looper.getMainLooper());
           ^
Main.java:15: illegal character: \12288
?public void run()
^
Main.java:15: ';' expected
?public void run()
 ^
Main.java:16: illegal character: \12288
?{
^
Main.java:17: illegal character: \12288
??hi.post(new Runnable() {
^
Main.java:17: illegal character: \12288
??hi.post(new Runnable() {
 ^
Main.java:17: ';' expected
??hi.post(new Runnable() {
    ^
Main.java:18: illegal character: \12288
???public void run () {
^
Main.java:18: illegal character: \12288
???public void run () {
 ^
Main.java:18: illegal character: \12288
???public void run () {
  ^
Main.java:18: <identifier> expected
???public void run () {
   ^
Main.java:18: ';' expected
???public void run () {
         ^
Main.java:18: invalid method declaration; return type required
???public void run () {
               ^
Main.java:19: illegal character: \12288
????//????
^
Main.java:19: illegal character: \12288
????//????
 ^
Main.java:19: illegal character: \12288
????//????
  ^
Main.java:19: illegal character: \12288
????//????
   ^
Main.java:20: illegal character: \12288
???}
^
Main.java:20: illegal character: \12288
???}
 ^
Main.java:20: illegal character: \12288
???}
  ^
Main.java:21: illegal character: \12288
??});
^
Main.java:21: illegal character: \12288
??});
 ^
Main.java:22: illegal character: \12288
?}
^
33 errors
stdout
Standard output is empty