package de.codegym.task.task19.task1913;
import java.io.*;
/*
Nur Ziffern ausgeben
*/
public class Solution {
public static TestString testString = new TestString();
public static void main(String[] args) {
PrintStream thisOut = System.out;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream print = new PrintStream(baos);
System.setOut(print);
testString.printSomething();
String result = baos.toString();
System.setOut(thisOut);
//wie bekomme ich die nummern da raus?
}
public static class TestString {
public void printSomething() {
System.out.println("This 1 text 23 is 4 f5-6or7 tes8ting");
}
}
}