FileDocCategorySizeDatePackage
CompareStrings.javaAPI DocExample368Wed Mar 13 16:58:46 GMT 2002None

CompareStrings

public class CompareStrings extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		System.out.println("Starting CompareStrings...");
		String s1 = "New String";
		String s2 = "New String";
		System.out.println("Are strings s1 and s2 equal? "+s1.compareTo(s2));
		String s3 = "Not the same";
		System.out.println("Are strings s3 and s1 equal? "+s1.compareTo(s3));