لما احاول انفذ البرنامج هذا اللي يظهر

|
أخوي أستخدم برنامج net beans عشان يشغل البرنامج
لما تفتح البرنامج انسخ الكود هذا تحت main method
كود PHP:
scanner in = new scanner(system.in);
system.out.print("enter an int value, the program exits if
the input is 0: ");
int n = in.nextint();
int positives = 0, negatives=0 , count = 0;
double sum=0 , ave=0;
for (; ;) {
sum+=n;
count++;
if (n == 0)
break;
if (n > 0) {
positives ++;
}
else{
negatives++;
}
ave= sum/count;
system.out.print("enter an int value, the program exits if
the input is 0:");
n = in.nextint();
}
system.out.println("the number of positives " + positives
);
system.out.print("the number of negatives " + negatives );
system.out.println (" \n the total is " + sum );
system.out.println (" the average is " + ave );
بالطريقة الي أنت قاعد تستخدمها ما راح يشتغل البرنامج