[Solved] How to convert a sample vb script code to java code [closed]


This should qualify for a solution

String var1 = "test123";
String var2 = "Test";
if(var1.toUpperCase().contains(var2.toUpperCase())){
    System.out.println("pass");
}

solved How to convert a sample vb script code to java code [closed]