About 16,900,000 results
Open links in new tab
  1. How do I convert a String to an int in Java? - Stack Overflow

    Alternatively, you can use an Ints method from the Guava library, which in combination with Java 8's Optional, makes for a powerful and concise way to convert a string into an int:

  2. Java - Convert integer to string - Stack Overflow

    int i = 1234; String str = Integer.toString(i); Returns a String object representing the specified integer. The argument is converted to signed decimal representation and returned as a string, exactly as if …

  3. How can I convert a string to an integer in JavaScript?

    There are two main ways to convert a string to a number in JavaScript. One way is to parse it and the other way is to change its type to a Number. All of the tricks in the other answers (e.g., unary plus) …

  4. ¿Cómo convertir un String en Int en Java? [duplicada]

    ¿Cómo convertir un String en Int en Java? [duplicada] Formulada hace 8 años y 6 meses Modificada hace 8 años y 6 meses Vista 216k veces

  5. How can I convert a std::string to int? - Stack Overflow

    Nov 20, 2014 · To convert from string representation to integer value, we can use std::stringstream. if the value converted is out of range for integer data type, it returns INT_MIN or INT_MAX.

  6. .net - How to convert string to integer in C# - Stack Overflow

    Feb 26, 2010 · How do I convert a string to an integer in C#?

  7. How to convert a string to integer in C? - Stack Overflow

    Aug 11, 2011 · I am trying to find out if there is an alternative way of converting string to integer in C. I regularly pattern the following in my code. char s[] = "45"; int num = atoi(s); So, is there a bett...

  8. Convert string to integer type in Go? - Stack Overflow

    Nov 25, 2010 · I'm trying to convert a string returned from flag.Arg(n) to an int. What is the idiomatic way to do this in Go?

  9. c# - How to get enum value by string or int - Stack Overflow

    int a = 2; how can I get the instance of enum ? I want a generic method where I can provide the enum and my input string or int value to get the enum instance.

  10. How can I convert String to Int? - Stack Overflow

    I have a TextBoxD1.Text and I want to convert it to an int to store it in a database. How can I do this?