/** * Created on 2005-06-07 by Alpha * Demonstrate the consistancy of the String Class */ import java.lang.*.
public class Demo { /** * * @param args the parameters */ public static void main(String[] args) { /** * define a string object */ String strDemo = "This is a demo string.".