السلام عليكم و رحمة الله و بركاته
هذا كلاس لطباعة عشر أسماء طلاب وطباعة ثلاث درجات لكل طالب
و لكن ظهر في الcompile errors
أعرف أن كتابتي فيها أخطاء و لأكني أرجو منكم المساعدة
import javax.swing.*;
class Student{
public static void main (String []args){
String[] name=new String[10];
double[][] marks=new double[10][3];
for (int i=0; i<10; i++)
String names=JOptionPane.showInputDialog("Enter the student name:");
for (int j=0; j<3; j++){
String userInput=JOptionPane.showInputDialog("Enter the student mark:");
double marks[j]=Double.parseDouble(userInput);
}
for (int i=0; i<10; i++){
System.out.print(names);
for (int j=0; j<3; j++){
System.out.print(marks[j]);
System.out.println();
}
}
System.exit(0);
}
}