javaclass

Changeset

75:3a4425854c86
2004-11-21 Paul Boddie raw files shortlog changelog graph Added a test of java.lang.String.
tests/StringTest.java (file)
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/StringTest.java	Sun Nov 21 23:48:35 2004 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +public class StringTest {
     1.5 +    private String s;
     1.6 +    private String s2 = new String("abc");
     1.7 +    private static String s3;
     1.8 +    private static String s4 = new String("xyz");
     1.9 +
    1.10 +    public StringTest() {
    1.11 +        s = s2;
    1.12 +    }
    1.13 +
    1.14 +    public StringTest(String newString) {
    1.15 +        s = newString;
    1.16 +    }
    1.17 +}