Re: trying to send a file name to a class that will read the file

I am taking a course to learn Java. The current assignment deals with using methods of user created classes. We have not been taught IOExceptions or anything close, but rather for this assignment have been given some preexisting code we are supposed to add to.

the code given, allows us to double click on a file. I think I'm supposed to send the filename to a class to have the class process it.

Re: trying to send a file name to a class that will read the file

Re: trying to send a file name to a class that will read the file

You have been told to go read a tutorial. It will have all the information that you need. However you do not want to do that and expect us to take the time to write up an explanation which will basically duplicate what is already in that tutorial that you will not read. Why should we waste our time doing that?

Re: trying to send a file name to a class that will read the file

Originally Posted by Jadeclan

I read about 20 pages of tutorial that I understood about 1% of.

So what is that 1% that you understood? What is the 99% that you didn't understand? As I said anything we post will be duplicating what is in the tutorial. If you don't understand that, how do you magically expect to understand the same information posted by us?

Re: trying to send a file name to a class that will read the file

I read about 20 pages of tutorial that I understood about 1% of. This assignment has nothing to do with the handling of excpetions which will come in next years course.

Thanks a bunch for the helpful insight on learning

We're not going to write your code for you, but will be happy to answer direct questions with direct answers. I agree with Junky -- ask any questions you'd like about confusing bits in the tutorials and we'll be more than happy to try to help as best we can. But just complain about not understanding and there's not a whole lot we can do.

Re: trying to send a file name to a class that will read the file

The assignment is a first year U course, that won't cover GUI or even file handling till next year. In any event, I used the old bang at the keyboard until something happens method. As far as I can tell, it has something to do with changing my public main ...... throws FileNotFoundException to throws IOException.

Anyway, thanks for reading and trying.

PS if I ask someone to read chinese and I send them to a chinese book to learn, I wouldn't be surprised if they came back with a dumb sounding, looking like they didn't try question. The material was simply over my head. It won't be in a couple months, but it is now.