【初心者】Java質問・相談スレッド69【大歓迎】
■ このスレッドは過去ログ倉庫に格納されています
0347デフォルトの名無しさん
2005/08/01(月) 11:52:08public void getCategory(){
String numberExam = JOptionPane.showInputDialog("How many sores?");
int theLength = Integer.parseInt(numberExam);
System.out.println("Number of Exams:" + numberExam + "\n");
int[] theScore= new int[theLength];
for (int i = 0 ; i < theLength; i++){
String score = JOptionPane.showInputDialog("Enter Exam Score" + (i+1));
int sr = Integer.parseInt(score);
System.out.println("Exam Score:" + score);
if( score >= 90){
System.out.println("Out Standing Score!!\n");
}
theScore[i] = Integer.parseInt(score);
}
■ このスレッドは過去ログ倉庫に格納されています