Unformatted text preview: { number=num; } public boolean isOdd( ) { if (number%2==1) return true; return false; } public String toString() { if(isOdd()==true) return number+" is odd.\n"; return number+" is even.\n"; } }...
View
Full Document
- Spring '07
- n/a
- Computer Science, Artificial Intelligence, int num
-
Click to edit the document details