Take them one at a time.

The error that says int cannot be dereferenced means that you're trying to use the dot operator on an int, which is a primitive. Think about exactly what you're trying to...