int
is not an object in java (it’s a primitive), so you cannot invoke methods on it.
One simple way to solve it is using
Integer.toString(intArray[i])
More Related Contents:
- What's the output of this code written in java?
- Algorithm for taking elements from an in[] array and concatenating them [closed]
- how to replace display array list equals another array list values
- java.lang.arrayoutofboundexception length:10 index:10
- How do i format a ArrayList for printing?
- Convert ArrayList to String[] array [duplicate]
- Java Array, Finding Duplicates
- Cannot create an array of LinkedLists in Java…?
- How to convert an int array to String with toString method in Java [duplicate]
- How can I convert int[] to Integer[] in Java?
- How to find the index of an element in an array in Java?
- Variable length (Dynamic) Arrays in Java
- Get only part of an Array in Java? [duplicate]
- How to display a svg byte array as an image in a JasperReport?
- ArrayIndexOutOfBoundsException when iterating through all the elements of an array
- How to convert int[] to byte[]
- byte array to short array and back again in java
- How do I declare a 2D String arraylist?
- Remove Null Value from String array in java
- Arrays constants can only be used in initializers error
- Java creating byte array whose size is represented by a long
- How does one instantiate an array of maps in Java?
- Arrays with trailing commas inside an array initializer in Java
- In Java, remove empty elements from a list of Strings
- Iterate through 2 dimensional array
- get closest value to a number in array
- Wav file convert to byte array in java
- Difference between Arrays.sort() and Arrays.parallelSort()
- Finding an element in an array in Java
- In Java, how to append a string more efficiently? [duplicate]