well thats because this are the only thing to change in you're code
in other word System.out.println ("Should be applayed to String type only")
you got it?
that 's why we're taking the String value of your variables
it compil fine