public static void main(String[] args) 
    {
        try
        {
            FileOutputStream lower = new FileOutputStream("c:\\temp\\lower.txt");
            FileOutputStream upper = new FileOutputStream("c:\\temp\\upper.txt");
            FileOutputStream isoctrl = new FileOutputStream("c:\\temp\\isoctrl.txt");
            FileOutputStream digit = new FileOutputStream("c:\\temp\\digit.txt");
            FileOutputStream letter = new FileOutputStream("c:\\temp\\letter.txt");
            FileOutputStream mirrored = new FileOutputStream("c:\\temp\\mirrored.txt");
            FileOutputStream whitespace = new FileOutputStream("c:\\temp\\whitespace.txt");
            FileOutputStream title = new FileOutputStream("c:\\temp\\title.txt");
            for (int ii=0;ii<=Character.MAX_VALUE;ii++)
            {
                System.err.println(ii);
                char cc = (char) ii;
                if (Character.isLowerCase(cc))
                {
                    print(lower, cc);
                }
                if (Character.isUpperCase(cc))
                {
                    print(upper, cc);
                }
                if (Character.isISOControl(cc))
                {
                    print(isoctrl, cc);
                }
                if (Character.isDigit(cc))
                {
                    print(digit, cc);
                }
                if (Character.isLetter(cc))
                {
                    print(letter, cc);
                }
                if (Character.isMirrored(cc))
                {
                    print(mirrored, cc);
                }
                if (Character.isWhitespace(cc))
                {
                    print(whitespace, cc);
                }
                if (Character.isTitleCase(cc))
                {
                    print(title, cc);
                }
            }
            lower.close();
            upper.close();
            isoctrl.close();
            digit.close();
            letter.close();
            mirrored.close();
            whitespace.close();
            title.close();
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }
    }
public static void main ( String [ ] args ) { try { FileOutputStream lower = new FileOutputStream ( "c:\\temp\\lower.txt" ) ; FileOutputStream upper = new FileOutputStream ( "c:\\temp\\upper.txt" ) ; FileOutputStream isoctrl = new FileOutputStream ( "c:\\temp\\isoctrl.txt" ) ; FileOutputStream digit = new FileOutputStream ( "c:\\temp\\digit.txt" ) ; FileOutputStream letter = new FileOutputStream ( "c:\\temp\\letter.txt" ) ; FileOutputStream mirrored = new FileOutputStream ( "c:\\temp\\mirrored.txt" ) ; FileOutputStream whitespace = new FileOutputStream ( "c:\\temp\\whitespace.txt" ) ; FileOutputStream title = new FileOutputStream ( "c:\\temp\\title.txt" ) ; for ( int ii = 0 ; ii <= Character . MAX_VALUE ; ii ++ ) { System . err . println ( ii ) ; char cc = ( char ) ii ; if ( Character . isLowerCase ( cc ) ) { print ( lower , cc ) ; } if ( Character . isUpperCase ( cc ) ) { print ( upper , cc ) ; } if ( Character . isISOControl ( cc ) ) { print ( isoctrl , cc ) ; } if ( Character . isDigit ( cc ) ) { print ( digit , cc ) ; } if ( Character . isLetter ( cc ) ) { print ( letter , cc ) ; } if ( Character . isMirrored ( cc ) ) { print ( mirrored , cc ) ; } if ( Character . isWhitespace ( cc ) ) { print ( whitespace , cc ) ; } if ( Character . isTitleCase ( cc ) ) { print ( title , cc ) ; } } lower . close ( ) ; upper . close ( ) ; isoctrl . close ( ) ; digit . close ( ) ; letter . close ( ) ; mirrored . close ( ) ; whitespace . close ( ) ; title . close ( ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } }
@param args the command line arguments