עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה בתרגיל פשוט בJAVA

Featured Replies

פורסם

יש לי איזה בעיה עם הסוגריים לא הבנתי בדיוק טעות טיפשית

import java.util.*;

public class MyClass {
static scanner reader= new scanner(system.in);
public static void main() {
int a,b,c,d;
double avg;
for (int i=1; i<20; i++)
{
System.out.println ("how many goals in game1");
a=reader.nextInt();
System.out.println ("how many goals in game2");
b=reader.nextInt();
System.out.println ("how many goals in game3");
c=reader.nextInt();
d=(a+b+c);
avg=(d/3);
System.out.println ("the number of player is and the avg is"+ i+avg);
if ((a=0) // (b=0) // (c=0))
{
System.out.println ("lo evkia");
}
if (d>5)
{
System.out.println ("player miztayen");
}
}

}
}

פורסם

השורה הזו:

if ((a=0) // (b=0) // (c=0))

שגויה.

// זה סימון של הערה.

|| זה סימון עבור "או" לוגי.

להבא, תכתוב גם מהי הודעת השגיאה.

פורסם
  • מחבר

עכשיו קיבלתי עוד שגיאה:

java.lang.NoClassDefFoundError: scanner Either the class declaration or import is missing, or there is a circular dependency between classes and the interpreter cannot handle it correctly.

פורסם
  • מחבר

אוקיי מצאתי עוד כמה שגיאות טיפשיות = אחד ועוד כמה טיפוסים שרשמתי באות קטנה :kopfpatsch:

כל מקרה עכשיו זה עובר תודה

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.