/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String recognizedText = "asd 232 sdfsdf3234 wersdfsf3r4 986";
		
		recognizedText = recognizedText.replaceAll("[^0-9]+", " "); //Replaces all except numbers from 0 to 9
		
		System.out.println (recognizedText);
		
	String[] justnumbers = recognizedText.trim().split(" "); //Deletes blank spaces and splits the numbers
    //YourTextView.setText(Arrays.toString(justnumbers).replaceAll("\\[|\\]", "")) //sets the numbers into the TextView and deletes the "[]" from the String Array
	
			System.out.println (Arrays.toString(justnumbers).replaceAll("\\[|\\]", ""));
	}
}