File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes I need help!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I need help!!!" Watch "I need help!!!" New topic

I need help!!!

Becky Harris

Joined: Oct 02, 2002
Posts: 3
I am a student that just wrote my first program and I can't get it to run. I have errors and do not understand them. If some one could please help me I would greatly apperciate it.
double hrs wkd;
double pay rate;
double ot hrs;
double tot hrs wkd;
double tot reg pay;
double pay rate = 0;
double tot ot pay;
double tot gross pay;
double tot hrs = 0;
int tot employees = 0;

Utility skip ( );
(the errors that I am getting for these is ; expected)
[ October 03, 2002: Message edited by: Becky Harris ]
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
We'd happy to help you out but you'll have to post more of an explanation. What kind of errors are you getting? Does it compile? Show us your code, or at least the part that is giving you trouble.

Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to Beginner

"JavaRanch, where the deer and the Certified play" - David O'Meara
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
1. change the names of all your variables. You
cannot have what seem to be spaces in the middle of a variable name.
2. choose "nice" meaningful names like hoursWorked (or if you must: hours_worked) instead of hrswkd.
3. recompile and re-present your code between code markers (see just below the edit box)
[ October 03, 2002: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: I need help!!!
It's not a secret anymore!