Why is Double different from new Double()
From: Bob Sparks (Bobsparks_at_excite.com)
Date: 12/30/04
- Next message: ByteCoder: "Re: Why is Double different from new Double()"
- Previous message: rohan shah: "retrieving arrays frrom vecttors or linked list"
- Next in thread: ByteCoder: "Re: Why is Double different from new Double()"
- Reply: ByteCoder: "Re: Why is Double different from new Double()"
- Reply: klynn47_at_comcast.net: "Re: Why is Double different from new Double()"
- Reply: Ryan Stewart: "Re: Why is Double different from new Double()"
- Reply: Tony Morris: "Re: Why is Double different from new Double()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2004 08:44:33 -0800
I have a method that requires a Number as an argument
If I do this
Double x = new Double("2");
numberMethod(x);
It doesn't compile with a not found error
nor does
numberMethod((Number)x);
where as
numberMethod(new Double(x));
does compile. Can any one explain it?
Bob
- Next message: ByteCoder: "Re: Why is Double different from new Double()"
- Previous message: rohan shah: "retrieving arrays frrom vecttors or linked list"
- Next in thread: ByteCoder: "Re: Why is Double different from new Double()"
- Reply: ByteCoder: "Re: Why is Double different from new Double()"
- Reply: klynn47_at_comcast.net: "Re: Why is Double different from new Double()"
- Reply: Ryan Stewart: "Re: Why is Double different from new Double()"
- Reply: Tony Morris: "Re: Why is Double different from new Double()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]