R
Roedy Green
Can this use of Java 1.5 for be make more terse?
public class ForTest
{
/**
* test harness
*
* @param args not used
*/
public static void main ( String[] args )
{
for ( String s : new String[] { "pony", "horse", "mare"} )
{
System.out.println( s );
} // end for
} // end main
} // end ForTest
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
public class ForTest
{
/**
* test harness
*
* @param args not used
*/
public static void main ( String[] args )
{
for ( String s : new String[] { "pony", "horse", "mare"} )
{
System.out.println( s );
} // end for
} // end main
} // end ForTest
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes