Hello Nidhi,
Try the below piece of code
public String createTargetCheck(String input, Container container) throws StreamTransformationException{
int flag = 0;
for(int i=0;i<input.length();i++)
{
char c = input.charAt(i);
if (c < 0x30 || (c >= 0x3a && c <= 0x40) || (c > 0x5a && c <= 0x60) || c > 0x7a)
flag=flag+1;
}
if(flag>0)
{
return "false";
}
else
{
return "true"
}
}
Let me know if you face any issues.