added ws202425 courses
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
public class Programm{
|
||||
|
||||
public static void main(String[] args){
|
||||
String str = " P R O G R A M M";
|
||||
|
||||
int len = str.length();
|
||||
System.out.println("Länge des Strings: " + len);
|
||||
|
||||
String subStr = str.substring(1,3);
|
||||
System.out.println("Substring von Index 1 bis 3: " + subStr);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user