انا ما قلت انو انا كتبت الكود انا جبتو وحبيت انك انت تساعدني في
واذا تبغى شي انا كاتبتو فهذا كود انا كتبتوا وفكرت في و برضو فيلو غلط اذا تحب تساعدني اكون شاكرة لك
الغلط يطلع في كود13
import javax.swing.JOptionPane; -1
public class numbers -2
{
public static void main(String args[]){ -3
int i=0; -4
int n=Integer.parseInt(JOptionPane.showInputDialog("How many numbers you have?")); -5
String[] num=new String[n]; -6
JOptionPane.showMessageDialog(null,"Ther are"+ n +"numbers ,click OK to start entering the numbers"); -7
for (i=0;i<num.length;i++){ -8
num=JOptionPane.showInputDialog("Enter your number"+(i+1)); -9
}
System.out.println("The number are:"); -10
for (i=0;i<num.length;i++){ -11
System.out.println(num+"is arrays number:"+(i+1)); -12
public void insertionSort() -13
{
int in, out; -14
for(out=1;out<i;out++) -15
{
long temp=a[out]; -16
in=out; -17
while(in>0&&a[in-1]>==temp) -18
{
a[in]=a[in-1]; -19
--in;
}
a[in]=temp;
}
}
}
}ويعطيك العافية
تم تعديل هذه المشاركة بواسطة علاء الصالحي في 28 ديسمبر 2008 في 11:16 — السبب: تعديل على الكود ليظهر في وسم code

