Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
import java.util*;
import java.lang.*;
import java.io.*;
class Stringdemo
{
public static void main (String [] args) throws java.lang.Exception
{
String str1 = "Jake Wagner";
String str2 = "Tony Ruggeri";
String str3 = "tony ruGGeri";
// checking for equality
boolean retval1 = str2.equals(str1);
boolean retval2 = str2.equalsIgnoreCase(str3);
// prints the return value
System.out.println("str2 is equal to str1 = " + retval1);
System.out.println("str2 is equal to str3 = " + retval2);
}
}
How to add classes and methods to the routine? please assist
Can you be a bit more specific on what you are trying to achieve? Simply importing your predefined classes can happen by going to "Advanced Settings" tab of the tJava component and adding them. If its a non-standard library, you may want to use tLibraryLoad component in pre-job or main job and then register the imports in the "Advanced Settings" tab.