سلام عليكم
انا طالب في الجامعة تخصصي رياضيات بس عندي مادة برمجة
واعطانا الدكتور سؤال في برمجة الجافا
السؤال : صحح الاخطاء في البرنامج
identify and correct the errors in the folloing progra
Puplic Class Test {
puplic static method1 (int n, m) {
n += m;
method2 (3,4);
}
public static int method2 (int n) {
if (n > 0) return 1;
else if (n == 0) return 0;
else if (n < 0) -1;
}
}