String Array Content Example
String Array Content example. This example shows you how to content a String Array.
This example shows you how to content a String Array
Here is the code
/**
* @ # Content.java
* A class repersenting how Content String Arrays
* version 04 June 2008
* author Rose India
*/
public class Content {
public static void main(String args[]) {
//whene we declare string array with finel
//then we can not change its length
final String[] str = new String[]{"Zero", "One", "Two"};
for (int i = 0; i < str.length; i++) {
System.out.println(str[i]);
}
}
} |
|