我需要在文本框中输入一个单词/句子,然后打印出我输入的内容,但是当我有一个特殊字符时,它会打印出我的fillPolygon形状。 我已经使用数组去替代使用If语句多边形人物,但是我不断收到错误消息:如何使用数组替换字符串中的字符fillPolygon
[line: 49] Error: method drawH in class Stringpoly cannot be applied to given types; required: java.awt.Graphics,int,int found:
java.awt.Graphics,int[],int[] reason: actual argument int[] cannot be
converted to int by method invocation conversion
请不要“谢谢你在前进”。我们的风格侧重于问题,而不是愉快的问题。 – Doorknob 2013-02-27 14:08:00