Convert the Strings in Java?

Hello,
How to convert String into primitive datatype.also give me a program where you clearly define the primitive datatypes. Please reply my post if you know the answer.

Thanks