Clay Adkerson

Greenhorn
+ Follow
since Mar 16, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Clay Adkerson

I think of it as something that other programs use. Take games for example. The ones like Half-Life, Unreal Tournament, Oblivion and a whole lot more use engines. Take Half-Life and strip it down to its basic form. No textures, animations or anything. Just the basic code. Thats what i think the engine is The engine sorta gives the basis of the software and then things are added. It is sorta hard to explain. Please correct me if i'm wrong
17 years ago
It doesnt matter how messy your code looks (although it is best to keep it organized. As long as you have all the correct ; and correct syntax it should work. The ';' tells the program that this is the end of the command. It reads everything up to the semi-colon (starting from the last point it left off) so you could have all your code on one line if you wanted to.

As to the fff; thing the syntax must be correct.
18 years ago
Okay, i get it. Thanks for all the help. I love this place . I'll try to make a method that takes two values but for now i'll use Giovanni's. Nah, im not getting anything for this lol. Its for one of my personal projects for when im bored.
18 years ago
Sorry i took so long but i still cant really figure it out. What im trying to do is create a simple bank account, which later i will make more complex. If you dont have an account it will make a random 5-digit number that it will assign as your Account#. So it must be 10000 through 99999. I looked at the Random class but you cant specify two numbers, only one.

I'll try to mess with it a little more. I know it is something simple but i just cant seem to grasp it.
[ May 09, 2005: Message edited by: Clay Adkerson ]
18 years ago
Okay thanks for the help. Ill try it out when i get the time.
18 years ago
How can i use Random to generate a 5-digit positive number? Any tips would be helpful.
18 years ago
It compiles fine in mine too. Im using JCreator.
18 years ago
Or i can help you in class! lol
18 years ago
Okay, i got text to morse done. Now for morse to text. Is there a way i can create a new HashMap that switches the keys and values of the other one? i really don't want to type in all that stuff again.
18 years ago
A question with HashMaps. It compiles fine pretty much but it tells me run with the compiler with -Xlint(im using JCreator) so i do it and it gives me a warning for every key that i added. It says: [unchecked] unchecked call to put(k,v) as a member of the raw type java.util.HashMap. What does that mean and should i just ignore it?
18 years ago
Sounds exactly what i needed. I'll look into it. Thanks for the help so far. Ill post here when i get a basic structure down.
18 years ago
I dont know what that is but i read some of the APi on Strings and i used toCharArray which will work with Text to Morse but Morse to Text i will need something different but one thing at a time.
18 years ago
For class me have to make a program that will convert text to morsecode and vice versa. I see how to do it but i can't figure it up in code. What i have so far is a 3 classes: Encode(text to morse), Decode(Morse to Text), and Converter which contains the Main method and takes the input. What i did was make a file that contatins the ABCs and 0-9 and put the conversions next to them seperated by a space. What i need to do is get the input, convert each letter, and then put them back. Im not sure what to use to do this. If anyone could give me some ways to do it that would help greatly. Im not asking for the whole code, just a good starting point.
-Clay
18 years ago
Thanks so much. Works now!
18 years ago
Okay heres my code:


What i want to do is when there is a blank line to have it stop reading. Ive tried if(line=="\n") but it doesnt work. Anyone know the correct way?
18 years ago