I am unable to search and find specific text from the below string text".
"Size: 0-0 — 9 otto @ z . t. — fig se REYfAR, S l ' WELCOME BACK, ELLEN TEST! ..$FREE $l PICK YOUR " " . @lotto POWER ' ’-; A . . . . - Q9 / '- 32-5 #63333? .— MILLION I ' /\ FFfA fl:( MEGAPRIZE @011 €011M$0wm I ;. .- h ‘ Glmf/immm £95191 ¢4 0 """ \nA-—~-"“"'/ _/ W Match all 8 #'5 plus your Power # to win theJackpot! €® lOttO 391%}; “a 4 5g] PLAY Now 500.00 ‘(AY\ Ecuo"
Below is the code i have used which doesn't search for the required text.
import java.io.*;
import java.lang.*;
class GFG
{
public static void main (String[] args)
{
// This is a string in which substring
// to be searched.
String text = "Above text ^";
CharSequence seq = "WELCOME BACK";
boolean bool = text.contains(seq);
System.out.println(bool);
}
}