first i dont know what does this :
Knute Snortum wrote:Sometimes Arrays.toString() will be enough, but if you want to do something with the objects in the array, then some kind of loop, like a for loop, is necessary.
second question i want to see the content of an array (only a array) example :
Output:
Java Example to print int array in Java: [I@1820dda
Java Example to print
string array in Java: [Ljava.lang.String;@15b7986
1, 2, 3, 4, 5, 1, 2, 3, 4, 5, Java Example to print String array values in Java 1.4 :[abc, bcd, def, efg]
Java Example to int array values in Java 1.4 :[[I@1820dda]
Java Example to print values of array in Java: [1, 2, 3, 4, 5]
Java Example to print values of array in Java: [abc, bcd, def, efg]
Java Example to print two dimensional array in Java: [[1, 2, 3], [10, 20, 30], [100, 200, 300]]
Read more:
http://javarevisited.blogspot.com/2012/12/3-example-to-print-array-values-in-java.html#ixzz43cirhe4E i want this code to search only in the same array and 1 dimensions string and int . How can i do that?also on my array i use userinput .How can i express it on my array that i use userinput ?i mean on the array it is like this private static int[] intArray = new int[]{ 2,3,4, 5,7}; i want to use userinput to complete the array and after to development to my window