The code below has been adapted from OCA Practice exam guide chapter 8 problem 9. when I try to run the program, compile result didn't match with the answer provided by the book. Can anybody please explain why is that ?
compile error I got from Eclipse:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
t cannot be resolved to a variable