Re: Yet Another Newbie question
On Sat, 01 Dec 2007 19:05:46 -0500, Marten Kemp
<martendespamkemp@thisplanet-link.net> wrote:
Stefan Ram wrote:
Marten Kemp <martendespamkemp@thisplanet-link.net> writes:
use the push() function to put stuff in, then interate
public class Main
This is the declaration of the Main class
{ public static void main( java.lang.String[] args )
This is the declaration of the main function.
{ final java.util.List<java.lang.String> list
= new java.util.ArrayList<java.lang.String>();
This declares a generic List of Strings implemented as an ArrayList of
strings. The names are given in full as they have nor been declared
in import statements.
This adds the string "alpha" to the list of strings declared above.
This adds the string "beta" to the list of strings declared above.
The list now has two entries in it.
for( final java.lang.String entry : list )
This iterates through all entries on the list, one at a time.
java.lang.System.out.println( entry ); }}
This prints out the current list entry. For your program you will
want to "do pretty HTML things with it" at this point.
That is the expected screen output.
rossum
Stefan, with all due humility, what the fsck is that?
It *seems* like some kinda 'dump the contents of something'
function, which sorta matches my dusty memories of C++.
I'll need to get stuff out and do pretty HTML things with it.