我需要在文本框中输入一个单词/句子,然后打印出我输入的内容,但是当我有一个特殊字符时,它会打印出我的 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