About 51 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

    Returns a String object representing the specified integer. The argument is converted to signed decimal representation and returned as a string, exactly as if the argument and radix 10 were given as …

  3. java - How do I convert from int to String? - Stack Overflow

    Nov 5, 2010 · If you say ""+i, Java creates a StringBuilder object, appends an empty string to it, converts the integer to a string, appends this to the StringBuilder, then converts the StringBuilder to a String.

  4. java - Convert String to Int. String value = scanner input.....hard to ...

    Okay so i'm trying to convert a couple things. So i have already converted my Scanner to a String, now what I want to do is, take the value that they input and use it as an integer for a couple el...

  5. java - Splitting and converting String to int - Stack Overflow

    1, 21, 333 With my following code I want to split and convert the numbers from String to int.

  6. java - Convert String to Integer without using parse or other methods ...

    Feb 11, 2017 · I am trying to convert a string to an integer, without using any built in methods like parseint(), do some calculation on the integer, and convert it back to string. Right now I can convert …

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

    Para hacer la siguiente operación necesitaremos hacer uso de la clase Integer y de su método "parseInt" de la siguiente manera: String numCadena = "1"; int numEntero = …

  8. Converting a string to an integer on Android - Stack Overflow

    EditText et = (EditText) findViewById(R.id.entry1); String hello = et.getText().toString(); And the value is assigned to the string hello. I want to convert it to a integer so I can get the number they typed; it will …

  9. Converting an int to a binary string representation in Java?

    Mar 9, 2010 · What would be the best way (ideally, simplest) to convert an int to a binary string representation in Java? For example, say the int is 156. The binary string representation of this …

  10. java - Converting String Array to an Integer Array - Stack Overflow

    I want to convert the string input to an integer array. so int[0] would be 12, int[1] would be 3, etc. Any tips and ideas? I was thinking of implementing if charat(i) == ',' get the previous number (s) and parse …