title: How to convert a sample vb script code to java code
body: <p>I want to convert the below VB Script code to Java in which it should check <code>var2</code> should be present in <code>var1</code></p>
  
  <pre><code>var1=test123
  var2=Test 
  If Instring (Ucase(var1),Ucase(var2)) &lt;&gt; 0 Then 
  print "pass"
  End IF 
  </code></pre>