Do you realise how vague your answer is. What int. The String "welcome" has no meaningful int value. Do you want its length? A sum of the ascii values? Some other highly complicated algorithm?...