String Comparison in Java Unknown 10:01 Java No comments public class StringTest { public static void main(String[] args) { String str="hello"; String str1="elephant"; System.out.println(str1.compareTo(str)); } } Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment