strange problem
From: Danny Gopie (ouygiytf_at_jhgvkuy.nl)
Date: 11/29/04
- Next message: Andrew Thompson: "Re: strange problem"
- Previous message: Marcus Shaw: "Re: Swing scrolling"
- Next in thread: Andrew Thompson: "Re: strange problem"
- Reply: Andrew Thompson: "Re: strange problem"
- Reply: Andrew Thompson: "Re: strange problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 15:48:34 +0100
Hello, I dont understand why it print these line((+ h1+ " is een veelvous
van" + h2), becouse the condition is not true. Whatever the values are, it
always print the line.
public class hele {
public static void main(String[] args) {
double h1 = 1;
double h2 = 3;
double p1 = 9;
double p2 = 8;
if ( (h2 % h1) ==67); {
System.out.println(+ h1+ " is een veelvous van" + h2);
}
}
}
- Next message: Andrew Thompson: "Re: strange problem"
- Previous message: Marcus Shaw: "Re: Swing scrolling"
- Next in thread: Andrew Thompson: "Re: strange problem"
- Reply: Andrew Thompson: "Re: strange problem"
- Reply: Andrew Thompson: "Re: strange problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|