May be this could help you for array of Strings
String[] s = {"mnmmm","sdcsdc"};
for(String h:s){
if(h.charAt(1)=='n')
System.out.println(h); // prints the first mnmmm
}
More Related Contents:
- Fairly new to programming, trouble reading and writing to a binary file. [closed]
- How to add two int array values together?
- Difference between int[] array and int array[]
- How to split a String by space
- Sort an array in Java
- The best way to print a Java 2D array? [closed]
- Convert integer into byte array (Java)
- NullPointerException when Creating an Array of objects [duplicate]
- How do I copy a 2 Dimensional array in Java?
- What is the Cost of Calling array.length
- How to convert object array to string array in Java
- How to return an array from JNI to Java?
- How to parse JSON Array (Not Json Object) in Android
- How can I create a stream from an array?
- How is length implemented in Java Arrays?
- How do I fill arrays in Java?
- How can I generate a list or array of sequential integers in Java?
- How to increase an array’s length
- Determine the size of an InputStream
- All possible combinations of an array
- How do I convert Double[] to double[]?
- How to sort an array of objects containing null elements?
- Finding if an array contains all elements in another array
- Matrix multiplication using arrays
- Where can I find the source code for Java arrays? [closed]
- int[] array (sort lowest to highest)
- Trie vs. suffix tree vs. suffix array
- Check if an array is sorted, return true or false
- Is there any difference between “Object[] x” and “Object x[]”?
- Assigning an array to an ArrayList in Java