Search:

Type: Posts; User: Ashar

Search: Search took 0.13 seconds.

  1. Replies
    17
    Views
    45,000

    Re: How to convert String to int

    Thank you chris :)

    can you tell me why was it used in a program to read a number .. does JOptioPane always reads strings?
    like this :

    int x = Integer...
  2. Replies
    17
    Views
    45,000

    Re: How to convert String to int

    when i tried this code


    String yourString = "Ashar";
    int yourInt = Integer.parseInt(yourString);

    System.out.println(yourInt);


    it compiled showing no errors ... however when I run the...
Results 1 to 2 of 2