** Sabi ni Romel noong Wed, 31 Oct 2001 16:19:33 +0800
> public class PlugMeeting {
> static boolean attending;
> PlugMeeting (String venue) {
> if ( venue.equals ("Makati") )
> attending = false;
> else if ( venue.equals ("Katipunan") || venue.equals
> "ASTI") )
> attending = true;
> }
> PlugMeeting () {
> attending = false;
> }
> }
public class PlugMeeting {
static boolean attending;
PlugMeeting (String venue) {
attending = venue.equals ("Katipunan") || venue.equals ("ASTI")
}
}
The venue.equals ("Makati") portion is superfluous, unless you're expressing a
strenuous objection to a Makati venue. Even then, you should be able to
incorporate that into a single assignment statement instead of the if-then-else
-- exercise for the reader.
Mabuhay.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]