Having a hard time figuring out how to translate this. Here is the method I think should do it:
instance variable:
private boolean isPaperback;
Method:
public void translate(boolean trueOrFalse)
{
if (isPaperback = true) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
When I run the method, it gives me an answer of "Yes" for both true and false. Any idea of what I am doing wrong?
TIA, Marc
Edited by: Celtica on Feb 9, 2009 12:33 AM
Edited by: Celtica on Feb 9, 2009 12:34 AM