Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Hy Tobi
Der Code funktioniert bei mir nicht bekomme viele feher.
MFG
public static void leseDatei() {
String text = "";
try {
BufferedReader input = new BufferedReader(new FileReader(
"lorem.txt"));
String line;
while ((line = input.readLine()) != null) {
text = text + '\n' + line;
}
if (text.endsWith("\n"))
text = text + "\n";
input.close();
} catch (FileNotFoundException ex) {
ex.printStackTrace();
} catch (IOException ex) {
ex.printStackTrace();
}
StringTokenizer st = new StringTokenizer(text);
int i = 0;
while (st.hasMoreTokens()) {
if (st.nextToken().equals("Lorem")) {
i++;
st.nextToken();
}
}
System.out.println("In der Datei ist das Wort Lorem " + i
+ " mal enthalten");
}