/**
*
*/
/**
*
*
*/
public class Stringcmp2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String s1 = new String("Test");
String s2 = new String("Test");
if(s1.equals(s2))
System.out.println("Equal");
else
System.out.println("Not Equal");
}
}
*
*/
/**
*
*
*/
public class Stringcmp2 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String s1 = new String("Test");
String s2 = new String("Test");
if(s1.equals(s2))
System.out.println("Equal");
else
System.out.println("Not Equal");
}
}
Output:-
Equal
No comments:
Post a Comment