Auszug Nummer aus String Java
str = str.replaceAll("\\D+","");
Spotless Stag
str = str.replaceAll("\\D+","");
// Java program to Extract Digits from A Given Integer
// Printing the last digit of the number
while (number > 0) {
// Finding the remainder (Last Digit)
int remainder = number % 10;
// Printing the remainder/current last digit
System.out.println(remainder);
// Removing the last digit/current last digit
number = number / 10;
}