Posted by: CJ | September 11, 2011

Dinky little project

My dinky little java project I started last night and finished up this morning was writing something to read in the .txt version of Project Gutenberg’s Pride and Prejudice, filter out (in a rather stupid way) all the unique words (about 7000 of them), randomly pick some of them to write out into a text file, and then read in that text file and reverse it. So, for example, one output text file I generated was

additions including aimed
forced quit 99712
spots unappeasable symmetry

and the reversed version is

yrtemmys elbasaeppanu stops
21799 tiuq decrof
demia gnidulcni snoitidda


					
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: