Lab 2 Hint 2

An easy way to run through all of the letters would be to make a string containing the alphabet:

String alphabet = "abcdefghijklmnopqrstuvwxyz";

That would work even if we wanted to use a different alphabet—say, checking for pangrams in Finnish or Farsi (provided, of course, that we supply the correct alphabet).


Cary Gray
Last modified: Tue Jan 24 08:03:41 CST 2012