最近プログラマーになるため勉強を始めましてネットに出てる例文などを写してるのですが
package java00;
public class KinshuSample {
public static final int[] YEN_TYPES = {
10000,5000,1000,500,100,50,10,5,1
};
public static int[] getYenCount(int yen, int[] yentype) {
int[] count = new int[yentype.length];
for (int i = 0; i < yentype.length; i++) {
while (yen >= yentype[i]) {
yen -= yentype[i];
count[i]++;
}
}
return count;
}
public static void main(String[]args) {
int yen = 87654;
int[] count = getYenCount(yen, YEN_TYPES);
for (int i = 0; i < YEN_TYPES.length; i++) {
System.out.println(YEN_TYPES[i] + "円\t" + count[i] + "枚");
}
}
}
このプログラミングの21行目~”枚”);の);の部分がエラーで直し方がわかりません。
初歩的な質問かもしれなくて申し訳ないのですがご回答頂けると嬉しいです。