-1
我試着做任何連接到IRC一個Java機器人,然後當用戶鍵入命令時,「滾動骰子」,但它似乎沒有工作Java的IRC骰子機器人不工作
cannot find symbol variable IntRoll
illegal start of type
cannot find symbol variable OpRoll
illegal start of type
cannot find symbol variable Op
cannot find symbol variable IntRoll
illegal start of type
cannot find symbol variable OpRoll
illegal start of type
cannot find symbol variable Op
cannot find symbol variable Op
cannot find symbol variable generator
int cannot be dereferenced
cannot return a value from method whose result type is void
int cannot be dereferenced
cannot return a value from method whose result type is void
cannot return a value from method whose result type is void
cannot return a value from method whose result type is void
cannot find symbol variable generator
cannot find symbol variable InRoll
cannot return a value from method whose result type is void
cannot find symbol variable InRoll
cannot return a value from method whose result type is void
cannot return a value from method whose result type is void
這裏有兩個文件, http://pastebin.com/c47RqRsd http://pastebin.com/v4Y42uF4
您有編譯器錯誤。 – Jeffrey 2012-03-18 00:56:14
嘗試通過cmd使用javac編譯,仍然得到這些錯誤 – Epicblood 2012-03-18 01:06:58
是的,你的代碼中有編譯錯誤。無論您使用哪種編譯器,都會得到這些錯誤。 – Jeffrey 2012-03-18 01:09:54