public class Main {
public static void main(String[] args) {
String satz = "Heute ist wunderbares Wetter, fahren wir doch zum Strand";
System.out.println(satz);
System.out.print(satz.substring(22));
}
}
I tried different things, but i have always errors. i am a beginner with Java, and i try to understand strings. I tried to understand them in ANSI C, but i have no clue :D
String is an Object which has build in methods such as the one you're using .substring(). Another which might be handy for you in this case is charAt() in combination with a loop. You can read more about which methods String object has at https://docs.oracle.com/javase/7/docs/api/java/lang/String.html