単語/文をテキスト ボックスに入力し、入力内容を印刷する必要がありますが、特殊文字がある場合、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