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.

Trotz import: "cannot be resolved to a type"

Empfohlene Antworten

Veröffentlicht

Hallo zusammen.

Ich bin blutiger Java-Einsteiger, und habe mir Eclipse raufgezogen.

"Hello World" klappt super. Nun will ich eine Datei auslesen, und komme nur soweit:


import java.io.*;


public class CSVImport {


	static String LogPath = new String ("C:\\");

	static String ActFile = new String ("a.txt");

	static String FilePath = new String (LogPath + ActFile);


	public static void main(String[] args) {


		ReadCSV(FilePath);			

	}


	public static void ReadCSV (String FP) {

		BufferReader in = new BufferReader(new FileReader(FP));

		String Line = in.readLine();

		System.out.println(Line);

	}


}

Trotz Import bekomme ich "BufferReader cannot be resolved to a type".

Java enviromant hab auch nochmal aktuell drüber laufen lassen.

Vergess oder überseh' ich etwas?

Wäre schön nen Anstoß zu bekommen.

Viele Grüße,

Aranha

Vielen Dank.

Und BufferedReader liegt unter io, und mit * importiere ich doch alles darunter oder? Wie auch immer: Ich hatte auch import java.io.BufferedReader; schon drin.

Das scheint nicht der punkt zu sein, oder?

Ich beanspruche Tante Google schon seit einigen Stunden diesbezüglich.

Die meisten Lösungsansätze fand ich hier:Philip Yurchuk Eclipse “cannot be resolved to a type” error

Nichts hat geholfen.

Sorry, ich hatte deine Antwort so verstanden, dass ich mal erstmal googeln sollte.

Vielen Dank für deinen Hinweis: das wars.

Zu dumm, aber nen klassiker. :upps

Viele Grüße,

Aranha

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.