About 208,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, …

  3. ¿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

  4. What's the best way to check if a String represents an integer in …

    May 7, 2015 · If you are concerned whether you can actually parse the string into an int or long you would also need to check if the integer the string represents actually fits into those data …

  5. Most efficient way of converting String to Integer in java

    Jun 23, 2009 · Note: Java 6u14 allows you to increase the size of your Integer pool with a command line option -Djava.lang.Integer.IntegerCache.high=1024 for example. Note 2: If you …

  6. Can I multiply strings in Java to repeat sequences?

    May 31, 2017 · Replace generation with number of repetitions, and the "-" with the string (or char) you want repeated. All this does is create an empty string containing n number of 0x00 …

  7. How to concatenate int values in java? - Stack Overflow

    Apr 20, 2010 · I have the following values: int a=1; int b=0; int c=2; int d=2; int e=1; How do i concatenate these values so that i end up with a String that is 10221; please note that …

  8. 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.

  9. error: incompatible types: String cannot be converted to int

    Assignment1.java:38: error: incompatible types: int cannot be converted to String num = Integer.parseInt(response); For clarification, I'm using JGrasp, but willing to not.

  10. Determine if a String is an Integer in Java - Stack Overflow

    Mar 26, 2011 · I'm trying to determine if a particular item in an Array of strings is an integer or not. I am .split(" ") 'ing an infix expression in String form, and then trying to split the resultant array …