|
What this is
Other links
The source code
package org.me.mylib;
/** Utilities. */
public class LibClass {
/**
* Compute an acrostic.
* @param args some strings
* @return their acrostic
*/
public static String acrostic(String[] args) {
StringBuffer b = new StringBuffer();
for (int i = 0; i < args.length; i++) {
if (args[i].length() > i) {
b.append(args[i].charAt(i));
} else {
b.append('?');
}
}
return b.toString();
}
}
|
Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com