-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