i am doing the coding of my minor project and for that i need to convert an input text(String) to an int type as i am inputting the data through swing component, panel as text(string). But internally i need to process that as int. so please tell me how can i convert it. For example, if my input String is "786", i should get its int value as 786.
please provide some code if possible.