/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
List<String> listOfStrings = new LinkedList<String>( ); listOfStrings.add("Happy"); listOfStrings.add("Birthday"); listOfStrings.add("To"); listOfStrings.add("You"); for (Iterator<String> i = listOfStrings.iterator( ); i.hasNext( ); ) { out.println(s); }