aspose file tools*
The moose likes Beginning Java and the fly likes anyone help me!!!~~~ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "anyone help me!!!~~~" Watch "anyone help me!!!~~~" New topic
Author

anyone help me!!!~~~

Alex cordes
Greenhorn

Joined: Nov 15, 2005
Posts: 15
my work topic:
Write a program that functions as a register for a problem class. It should be possible to add and remove names, add and remove class dates, record whether a person was present at a class and display a report of who was present at a selected class. Data should be stored in a file.



and this is my :


IT CONTIANS LOADS ERRORS~~~
CAN ANYONE HELP ME TO CORRECT IT??? EXREMLY URGENT~~~
THANKS A LOT~~~

//JAM -- Edited to add [CODE] and [/CODE] tags.
[ November 16, 2005: Message edited by: Joel McNary ]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
contact the poster here, you may be able to work on it together

http://www.coderanch.com/t/401425/java/java/help-trying-write-program
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Joke names and "handles" aren't acceptable. You'll find that many Ranchers won't be interested in helping you until you follow this rule.

You can change your display name
here.
Thanks for your cooperation.


[Jess in Action][AskingGoodQuestions]
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Originally posted by Ernest Friedman-Hill:
Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Joke names and "handles" aren't acceptable. You'll find that many Ranchers won't be interested in helping you until you follow this rule.

You can change your display name
here.
Thanks for your cooperation.


Do you have a standard template to send out this message? Seems necessary!


ASCII silly question, Get a silly ANSI.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3704
    
    5

Originally posted by Stuart Ash:


Do you have a standard template to send out this message? Seems necessary!


Are you kidding? He sends it out three times a week I'd bet.


My Blog: Down Home Country Coding with Scott Selikoff
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14144
    
  18

First of all, please post code between [code ] ... [/code ] tags, that makes it easier to read.

Second, you say it contains "loads of errors". Take it one step at a time. Start by concentrating on the first error, think why it happens and solve it. Then go to the second error, etc.

We cannot compile your source code because it references classes (KeyboardInput, FileInput, FileOutput) that are not part of the Java API and you didn't supply them.

So, tell us about the errors one by one, what you don't understand, and we can help you with solving them.
[ November 16, 2005: Message edited by: Jesper de Jong ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Originally posted by Jesper de Jong:

Second, you say it contains "loads of errors". Take it one step at a time. Start by concentrating on the first error, think why it happens and solve it. Then go to the second error, etc.




But sometimes it might help to run through all the error message and possibly decide which ones to tackle first. The first-come-first-serve approach may not always work. Comments.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11308
    
  16

i always start with the first error in the list. Usually, if you fix it, it'll fix/change the others. it would stink to spend an hour on the 4th one, give up and fix the first one, and find that the 4th 'disappeared'.

I suppose there might be cases where solving later bugs would be ok, but i've never enountered one. Certainly never one that is not contrived.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jody Brown
Ranch Hand

Joined: Nov 09, 2005
Posts: 43
Whatever approach you take, I would certainly recommend that you don't ever try to fix more than one bug at once. That usually leads to either (a) more problems or (b) a lack of understanding as to what change fixed what bug. This is more of a general principle/rule of thumb that I try to stick to at any rate.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Originally posted by Scott Selikoff:


Are you kidding? He sends it out three times a week I'd bet.


Usually at least three times a day is more like it.

Each one of us, I think has our own "version", that we store on our machines and copy and paste it in when we see a violator.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Alex cordes
Greenhorn

Joined: Nov 15, 2005
Posts: 15
when i run my program,errors appear:

"WriteString(java.lang.String) in FileOutput cannot be applied to (java.lang.Object)

this is anothor program's error:

"incompatible types - found java.lang.Object but expected java.lang.String"

i cant get it! anyone help me solve both of them???
thanks a lot~~~
Tom Blough
Ranch Hand

Joined: Jul 31, 2003
Posts: 263
First, I'd get your dispatcher logic working, then test/debug your add entry. Once that is working, use addEntry to build a few test entries. Then test/debug searchForEntry. Once that is working, test/debug removeEntry. Make sure addEntry and searchForEntry still work correctly after removing an entry.

Once those are working, then test/debug your write to file routines. When that is working, you now have a file that you can use to test your load routines.

Break the testing down into small units (Actually you should do the initial coding this way). Don't move on until you have the small section working, then add more functionality.

Two more things to add on list etiquette:

1) All forums are here for other to help with problems. In the future, you'll get more people to read your postings if you use a topic title that refelects what you are lookig for. i.e. "problems coding switch statement"

2) Listers here normally will not do your homework assignments for you. You can go to http://www.rentacoder.com for that. What we will do, is help you to learn by answering well thought out questions to your problems.


Cheers,


Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Look at the JavaDocs for ArrayList.get(int index), paying particular attention to the return type, and think about casting.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anyone help me!!!~~~