String[] mystrings = new String[ 50 ];
for ( String s : mystrings )
{
out.println ( s );
}
for ( int i=0; i<mystrings.length; i++ )
{
out.println ( mystrings[i] );
}
String mystring = "happy birthday";
for ( char c : mystring )
{
out.println ( c );
}
for ( int i=0; i<mystring.length; i++ )
{
out.println ( mystring.charAt( i ) );
}
String mystring = "happy birthday";
char[] chars = mystring.toCharArray();
for ( char c : chars )
{
out.println ( c );
}
String[] mystrings = new String[ 50 ];
for ( int i : mystrings )
{
out.println ( mystrings[i] );
}
for ( int i=0; i<mystrings.length; i++ )
{
out.println ( mystrings[i] );
}