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

"Time is money and money can't buy you love and I love your outfit" - T.H.U.N.D.E.R. #1

Working...