Jade Global Interview Question

2.how to get a string from text using java