javapenguin is correct.... Delete your inner string class.... and then change the type in the constructor from string to String