Homework 10-31 Lab (1) String Comparison
public class Comparison
{
public static void main(String[] args)
{
String str1 = "I come from CYCU.";
String str2 = "I come from cycu.";
if(str1.equals(str2))
{
System.out.println(" They are equals. ");
}else
System.out.println(" They are not equals. ");
}
}
{
public static void main(String[] args)
{
String str1 = "I come from CYCU.";
String str2 = "I come from cycu.";
if(str1.equals(str2))
{
System.out.println(" They are equals. ");
}else
System.out.println(" They are not equals. ");
}
}