Jade Global interview question

2.how to get a string from text using java