JAVA

2005/11/28

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. ");

}
}

0 Comments:

張貼留言

<< Home