String Array Content ExampleString Array Content example. This example shows you how to content a String Array.
This example shows you how to content a String Array .
public class Content
{
public static void main(String args[])
{
//whene we declare string array with final
//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]);
}
}
}
output:Zero
One
Two
Monday, September 29, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment