How do I print out the result of a method? I want to print out the return of translate but it displays true or false. Suggestions please.
/** * @return
It looks like you mistakenly concatenated your variable pback instead of the result of your translate method in the following statement:
pback
System.out.println("Paperback: " + pback);
Instead, replace that statement with
System.out.println("Paperback: " + translate(pback));