this method must check if there is numbers in string/otherwise it should text in console"not a number"
 but it doesn't; help me to check it out pls!

```
public static int[] findNumbers(String text){
    String[]str=text.split(" ");
    int count =0;
    for (String s:str){
        if (isNumeric(s)) count++;
    }

    int[] numbers= new int[count];

    int index=0;
    try {
        for (String s:str){
            if (isNumeric(s)) numbers[index]=Integer.parseInt(s);
        }
        return numbers;

    }catch (Exception e){
        System.out.println("not a number");
    }
    return numbers;
}

private static boolean isNumeric(String text){
    if (text==null) return false;
    char[] chars=text.toCharArray();
    for (char ch:chars){
        if (!Character.isDigit(ch)) return false;
    }
    return true;
}

```

}