اكتب برنامج بلغة جافا
1:ادخل المصفوفه fill the arry with 10 students
2: ترتيب المصفوفه تصاعدياً sort the stdents by ascending numbers
3: print all students
4: Exit
استخدم الكود التالي لاتمام البرنامج المطلوب
import java .util.scanner ;
public class a {
public static void main (string[]args){
scanner s=new scanner (system.in);
int x;
int st[]=new int [10];
while (true){
system.out.println(''............'');
system.out.println(''1- fill the arry with 10 students'');
system.out.println(''2-sort the stdents by ascending numbers'');
system.out.println(''3-print all students '');
system.out.println(''4-exit'');
system.out.println(''....................'');
system.out.println)''enter the choice:'');
x=s.nextlnt();
switch(x){
case 1 : system.out.println (''fill'');
break;
case 2 : system.out.println(''sort'');
break
case 3 : for (int i=0 ;i<st.lenght;i++)
system.out.println(st[i]);
break;
case 4 : system .exit(0);
default : system .exit (0);
}
ارجوووووووووووووكم اريد الحل :( اليوم وبسررررعه اروجكم :(((((((