You shouldn't use accessor methods (getters and setters) unless absolutely necessary because these methods expose information about how a class is implemented and as a consequence make your code harder to maintain.
[http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-toolbox.html?page=6]
[In Java, you can only access private-member data with methods.]