【发布时间】:2013-02-27 14:07:39
【问题描述】:
我需要在文本框中输入一个单词/句子,然后打印出我输入的内容,但是当我有一个特殊字符时,它会打印出我的 fillPolygon 形状。 我使用一个数组尝试使用 If 语句将字符替换为多边形,但是我不断收到错误消息:
[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
【问题讨论】:
-
请不要在您的问题中包含“提前致谢”。我们的风格专注于问题,而不是寒暄。
标签: java arrays string replace applet