+ 1
How can I extract a word and integers from a given String in Java.
Suppose I have a String : " There are 745 apples in John's Basket". I need to extract 745 and word(John). How to proceed? I am a beginner in Java.
2 Respuestas
+ 1
i. You can use regex to extract matched pattern from string.
Iterate string then check for matched pattern using regex.