FileDocCategorySizeDatePackage
CharacterPrinter.javaAPI DocExample514Sun Mar 28 19:08:58 BST 1999None

CharacterPrinter

public class CharacterPrinter extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    for (int i = 0; i < args.length; i++) {
      printCharacters(args[i]);    
    }

  
public static voidprintCharacters(java.lang.String s)

  
    StringReader sr = new StringReader(s);
    try {
      int c;
      while ((c = sr.read()) != -1) {
        System.out.println((char) c);
      }
    }
    catch (IOException e) {
      System.err.println(e);
    }
    return;