words30 is a non-generic ArrayList, and as such, it only knows that it holds Objects. Your options include:

Make words30 a generic ArrayList<String>. This is likely the most elegant and practical...