Re: strange problem

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 11/29/04


Date: Mon, 29 Nov 2004 15:37:22 GMT

On Mon, 29 Nov 2004 15:48:34 +0100, Danny Gopie wrote:

It seems I did not look closely enough at this first time..
 
> public class hele {
> public static void main(String[] args) {
>
> double h1 = 1;
> double h2 = 3;
> double p1 = 9;
> double p2 = 8;

Comparing doubles for equality will usually fail, as..
<http://www.xdweb.net/~dibblego/java/faq/answers.html#Q41>

And to follow Java naming conventions, 'hele' should be 'Hele'.
It would also help to have more meaningful attribute names.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane