for (i=0; i<7;i++) { if (when[i]) sysout(...well, that's kinda the problem! How do I tell the program that when i=0 and when[0] is true to print weekday.mon? Should I write the enum differently? It would really be a little bit of a pain to change the boolean[], as it is used elsewhere in the program, but if that makes more sense: bring it on.

You said no question too simple...

Thanks a bunch, Martin

The problem people have in trying to create something foolproof is that they generally underestimate the inginuity of fools.

Larry Frissell

Ranch Hand

Posts: 82

2

posted 8 years ago

The is an example in the Sun tutorial here. That shows enum, have you tried that?

Martin Vietor

Ranch Hand

Posts: 40

posted 8 years ago

I did, actually, I adjusted my own output to that example, because I didn't think too many people here spoke German.