The easiest (but somewhat dirty) way:
String result = "" + a + b + c + d + e
Edit: I don’t recommend this and agree with Jon’s comment. Adding those extra empty strings is probably the best compromise between shortness and clarity.
More Related Contents:
- Concatenating null strings in Java [duplicate]
- Algorithm for taking elements from an in[] array and concatenating them [closed]
- add a bigInteger value to a 2d array
- How do I convert a String to an int in Java?
- How does Java handle integer underflows and overflows and how would you check for it?
- Why is 128==128 false but 127==127 is true when comparing Integer wrappers in Java?
- How to get the separate digits of an int number?
- Way to get number of digits in an int?
- Convert integer into byte array (Java)
- “Integer number too large” error message for 600851475143
- Java reverse an int value without using array
- Java integer to byte array
- How to handle very large numbers in Java without using java.math.BigInteger
- Why doesn’t Java throw an Exception when dividing by 0.0?
- Java Array HashCode implementation
- Integer.valueOf() vs. Integer.parseInt() [duplicate]
- Converting a string to an integer on Android
- What is the difference between the float and integer data type when the size is the same?
- Why to use StringBuffer in Java instead of the string concatenation operator
- why Integer.MAX_VALUE + 1 == Integer.MIN_VALUE?
- The range of int in Java
- Why cannot cast Integer to String in java?
- Get int from String, also containing letters, in Java
- Why is == true for some Integer objects? [duplicate]
- Converting String Array to an Integer Array
- 09 is not recognized where as 9 is recognized [duplicate]
- Is there a default type for numbers in Java
- Why are Integers immutable in Java?
- Is 00 an integer or octal in Java?
- Using int vs Integer