OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [emptystring.java] - Blame information for rev 778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
public class emptystring
2
{
3
        public static void main(String[] args)
4
        {
5
                System.out.println("null".equals(n(0) + ""));
6
                System.out.println("null".equals("" + n(0)));
7
                System.out.println("x".equals(n(1) + ""));
8
                System.out.println("x".equals("" + n(1)));
9
        }
10
 
11
        static String n(int i)
12
        {
13
                if (i==0) return null; else return "x";
14
        }
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.