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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -