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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [emptystring.java] - Rev 765

Compare with Previous | Blame | View Log

public class emptystring
{
        public static void main(String[] args)
        {
                System.out.println("null".equals(n(0) + ""));
                System.out.println("null".equals("" + n(0)));
                System.out.println("x".equals(n(1) + ""));
                System.out.println("x".equals("" + n(1)));
        }
 
        static String n(int i)
        {
                if (i==0) return null; else return "x";
        }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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