Forgot your password?
typodupeerror

Comment Re:Another reason I can avoid Java (Score 1) 172

Yeah, how about:

public class IdMain
{
        public IdMain(){
                go();
                }

        private void go()
        {
                String strLitName = "Patrick Naughton";
                String strObjName = new String("Patrick Naughton");

                if(strLitName == "Patrick Naughton"){
                        System.out.println("== evaluated to true");
                }
                else{
                        System.out.println("== evaluated to false");
                }
                if(strObjName == "Patrick Naughton"){
                        System.out.println("== evaluated to true");
                }
                else{
                        System.out.println("== evaluated to false");
                }
        }
                public static void main(String[] args) {
                        new IdMain();
                }
}

Slashdot Top Deals

A sheet of paper is an ink-lined plane. -- Willard Espy, "An Almanac of Words at Play"

Working...