Christie Apps

Greenhorn
+ Follow
since Aug 24, 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 Christie Apps

Thankyou very much Stan
Sorry it was hard to grasp without my code, didn't feel confident enough to put it up in case it was all wrong - I would feel so stupid lol
I am enrolled in a course for next year so am trying to become comfortable with it (when my boys give me a chance) before then. I have a Java book by Walter Savitch.
Thankyou again for your help!
Christie
18 years ago
Hi Guys
I am writing a small program of a car race and have done the first step which was my own classes one called die and one called car that has in it the attributes for the car - odometer, speed - and getters and setter for each, now it is time to write the main program and I feel as though I am hitting my head against a brick wall I just cannot think straight, probably due to lack of sleep anyway in this part I need to create an instance (??have no idea what this is) of the Car and Die class, have a variable called trackLength (I am setting this as a length of 40) and use a while loop so the car races around for 10 laps.
So could someone just give me a big push in the right direction PLEASE what should I do first?? Second?
Thankyou in Advance and I really hope this all makes sense.
18 years ago
Thankyou very much
Yes I think the software that has been supplied may have a few glitches, might have to have a look around for something different!
About my name Christie is my first name and I thought that was what I was supposed to use I didn't realise I had to use my first AND last name, sorry, I have now changed it.
18 years ago
Thankyou both so much, I think I am now getting somewhere!
I took out the try catch throw bit as I have not learnt that yet, and was a little confused by it
Only problem now is that when i execute it i get the following error
Exception in thread "main" java.lang.NoClassDefFoundError: Assignment1

I have added text (another 3 sets of questions and answers) and changed back to keyboardreader (as that is what we are to use)

Here is my KeyboardReader Code


And here is my program code (I hope it is not too long to put in a post, if it is I will edit it immediately)
18 years ago
I am fairly new to Java, and am in the process of writing a program that will engage a user in conversation and i seem to keep getting stuck and find myself looking at it too much which makes me even more confused. My issues at the moment are :
1. It tells me the variable name might not have been initialized
I am sure I had this working ok before so am not sure what I've done.

and 2. Once it reads the first question and the user types in the letter A, B or C and it gives the response I can't get it to then ask the next question!

If anyone understands what I'm trying to do and can help give me a big push in the right direction please do, I would really appreciate any input.
Thankyou
18 years ago