Quote
Quote
if(Guy.Hasgirlfriend() == true ){
System.out.print("programmer");
}
else {
System.out.print("Artist");
}

<img src="/ubbthreads/images/graemlins/devil.gif" alt="" />

Morbo


Quote
I prefer to write that pice of code this way:

if(Guy.Hasgirlfriend())
System.out.print("programmer");
else
System.out.print("Artist");


much more readable imho

Viper


Wouldn't the code for a "Magic 8 Ball" be more appropriate? <img src="/ubbthreads/images/graemlins/question.gif" alt="" /> <img src="/ubbthreads/images/graemlins/biggrin.gif" alt="" /> <img src="/ubbthreads/images/graemlins/question.gif" alt="" />

Kyra_Ny <img src="/ubbthreads/images/graemlins/eek.gif" alt="" /> <img src="/ubbthreads/images/graemlins/evilgrin1.gif" alt="" /> <img src="/ubbthreads/images/graemlins/eek.gif" alt="" />


As said, some day...

Übereil


Brain: an apparatus with which we think we think.

Ambrose Bierce