עבור לתוכן
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

פורסם


public static void main (String[] args)
{
public class Driver
{
First f1 = new First (10);
System.out.println ("sum1 = " + f1.sum());
System.out.println ("count = " + First.getCount());
First f3 = new First (10, 20);
System.out.println ("count = " + f3.getCount());
Second s1 = new Second (1);
First f4 = new Second (2);
System.out.println ("count = " + f4.getCount());
f3 = s1;
System.out.println ("sum = " + f3.sum());
f3.setNum3 (2);
f4.setNum3 (2);
s1.setNum3 (2);
System.out.println ("sum = " + s1.sum());
s1 = f3;
s1 = f4;
System.out.println ("sum = " + s1.sum());
}

}

השגיאה שאני מקבל (על השורה הראשונה)

class, interface, or enum expected

ברור לי שיש עוד בעיות בהמשך, זה חלק ממטלה שקיבלתי ואני מנסה לאתר באמצעות הקומפיילר עוד שגיאות.

פורסם

אי אפשר להגדיר קלאס בתוך פונקציה, אתה צריך לעשות בדיוק ההיפך.

פורסם
  • מחבר

אהה וואלה איך יכולתי להיות כל כך טיפש :s07:

תודה רבה

ארכיון

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

דיונים חדשים

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.