Topic awaiting preservation: can you optimise this ? (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Charles River |
posted 01-16-2003 18:23
I have these three methods in my program, coded in Java: code: public boolean condition_1_AlwaysTrue() {
|
Paranoid (IV) Inmate From: Czech Republic via Bristol UK |
posted 01-16-2003 18:29
wouldnt this be better in server side and coding??? likely to get more response there, hehe ini will be along he is your man for this stuff |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 01-16-2003 19:54 |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 01-16-2003 20:05
If I understood you problem right, this function should solve it. In this function a is an array holding some kind of object that has three functions (c1, c2, c3) that return boolean values. |
Maniac (V) Inmate From: Charles River |
posted 01-16-2003 21:07
WarMage - 'a' is an array of objects (some user-defined object). The objects that this array holds have these three methods c1() , c2() & c3() that return boolean values. So, each element of a[] can call any of these three methods. code: public static boolean cC(boolean b1, boolean b2, boolean b3) {
|