View Single Post
Old 04-23-2014, 09:41 PM
qva's Avatar
qva qva is offline
pretty good
Join Date: November 1, 2011
Location: space coast
Age: 19
Posts: 2,798
Pronoun: she
qva is on a distinguished road
Default First attempts at Java.

I created a program in Python that creates a random Pesterchum handle (the format being wordWord) from two dictionaries: one consisting of potential first words in the handle, the second consisting of potential second words in the handle. Just to experiment, I figured I would try to write the same program in Java (moreover, my host recently changed its cPanel and I'm super disoriented with it, so I'm trying to write a program in Java to spare time digging around for files that probably aren't worth digging around for).

However, it seems to me like Java doesn't really like generating random words, and that its specialty lies in numbers. After quite a bit of Google-searching around, I've come up empty. I still have no idea how to do this, since most advice that would seem worthwhile are completely useless to me, seeing as I am a complete novice in Java. The most I've ever done is drawn a picture of spaghetti with this language. That's basically it.

So, to clarify, I want to create a program in Java that selects one random word from both dictionaries (I think they're called arrays in Java?), then smashes them together and gives me the final result. No spaces. Nothing fancy. Just one lower-cased word, followed by an upper-cased word, without anything in between them, like I showed you above.

Any help would be greatly appreciated.
Reply With Quote