Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Statisches Array initialisieren

Empfohlene Antworten

Hi!

Ich hätt da mal ne Frage und zwar wenn ich ein Static Array hab initialisiere ich es ja folgendermaßen:

public class Blabla {

	static int array[][] = new int[10][10];


	public static void main(String [] args){
Wenn ich das Array jetzt aber erst in meiner main initialisieren will bringt er mir ne Fehlermeldung:
public class Blabla {

	static int array[][]; 


	public static void main(String [] args){

        array[][] = new int[10][10];

Ich weiß leider nicht woran es liegt und was mein Fehler ist könnt ihr mir vllt weiter helfen?

Danke im voraus!

Saban

Morgen!

Danke für deine Hilfe :D

Und zur Fehlermeldung da wurde nur ne Zeile mit

"Multiple Markers at this line" wars glaub ich angezeigt ne genauere Fehlermeldung hatte ich auch nicht :)

Danke nochmal!

MfG

Saban

Und zur Fehlermeldung da wurde nur ne Zeile mit

"Multiple Markers at this line" wars glaub ich angezeigt

Damit will dir Eclipse nur sagen, dass in dieser Zeile mehr als ein Fehler gefunden wurde.

Schau ins Problems-Fenster, da stehen die einzelnen Meldungen:

array cannot be resolved to a type

Syntax error on token "]", VariableDeclaratorId expected after this token

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.