selenium - How to convert a sample vb script code to java code -


i want convert below vb script code java in should check var2 should present in var1

var1=test123 var2=test  if instring (ucase(var1),ucase(var2)) <> 0  print "pass" end if  

this should qualify solution

string var1 = "test123"; string var2 = "test"; if(var1.touppercase().contains(var2.touppercase())){     system.out.println("pass"); } 

Comments

Popular posts from this blog

sql server - Deadlock occuring in Clustered Columnstore index -

python - What's the Pythonic way to report nonfatal errors in a parser? -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -