Read the API doc for the class to see what data types the methods use.
http://docs.oracle.com/javase/7/docs/api/