[問題] 錯誤訊息.....

看板java作者 (回想)時間18年前 (2006/03/26 23:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/9 (看更多)
Exception in thread "main" java.lang.NoSuchMethodError: main 我的程式碼如下: ______________________________ import java.awt.Graphics; import javax.swing.JApplet; public class Draw extends JApplet { public void paint (Graphics g) { super.paint(g); int counter = 1; do{ g.drawOval(110 - counter * 10, 110 - counter * 10,counter * 20,cou\ nter * 20); ++counter; }while (counter <= 10); } } ______________________________ 是按照書上的範例 但是不知道為什麼 出現上面的錯誤.... 但是我跑 其他java程式可以跑的說 請知道的人告知ㄧ下 感謝啦 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.231.11.26
文章代碼(AID): #149h0-kN (java)
討論串 (同標題文章)
文章代碼(AID): #149h0-kN (java)