Forum: Java
Apr 13th, 2008, 3:02 PM
|
|
Replies: 19
Views: 708
Re: Random "Letter" Generator
Well I learn something new everyday :) Looks like java.lang.* is the only package that is imported automatically according to...
|
Forum: Java
Apr 13th, 2008, 1:33 PM
|
|
Replies: 19
Views: 708
|
Forum: Java
Apr 13th, 2008, 12:04 PM
|
|
Replies: 19
Views: 708
Re: Random "Letter" Generator
I believe this pseudo code should work for you. You are on the right track with the input validation (making sure users enter uppercase letters and numbers). I've also added that into the pseudo code...
|
Forum: Java
Apr 13th, 2008, 1:05 AM
|
|
Replies: 19
Views: 708
Re: Random "Letter" Generator
Ok that is what I thought. It's how I implemented my isNumeric() method above. I just wanted to make sure I was reading kewlgeyes's code correctly in that when he runs it and enters a letter his...
|
Forum: Java
Apr 13th, 2008, 12:55 AM
|
|
Replies: 19
Views: 708
Re: Random "Letter" Generator
Actually I don't think I made it very clear what I meant now that I reread my last post. I agree that using Double.parseDouble will convert a string, which contains a number (1-10 in our case), to an...
|
Forum: Java
Apr 12th, 2008, 11:40 PM
|
|
Replies: 19
Views: 708
Re: Random "Letter" Generator
First post on this forum but I have been lurking for a while. It has been a few years since I have used Java so thought I'd give this a go for some practice. Here is what I came up with based largely...
|