Search:

Type: Posts; User: vanconde

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    773

    [SOLVED] Re: File and PrintWriter objects

    Yes, you are right the File class will open the file. Got it. Thanks for the insight. I think I got it now.

    thanks again
  2. Replies
    4
    Views
    773

    [SOLVED] Re: File and PrintWriter objects

    Ok,
    So I want to create a method to read data from a file. I also want to print data to a separate file. So, can I create one method to do both tasks using the File class and the PrintWriter class?...
  3. Replies
    4
    Views
    773

    [SOLVED] File and PrintWriter objects

    If I am using the File object to read a file and PrintWriter object to write to a separate file, can I use them under one method. Or is the File one method and the PrintWriter another method?
  4. [SOLVED] Re: fileDisplay class with "Exception in thread "main" java.util.NoSuchElementException: No line found" error

    Ok, I figured it out with some of your comments. Thanks to all for your input.
    Here is my final version. I am posting just for FYI. You can comment more if you feel like. Any help on improving my...
  5. [SOLVED] Re: fileDisplay class with "Exception in thread "main" java.util.NoSuchElementException: No line found" error

    I understand items 2 and 3, but I don't understand what you mean by "no returns are required". How do the methods get passed to the main program when called without a return?
  6. [SOLVED] Re: fileDisplay class with "Exception in thread "main" java.util.NoSuchElementException: No line found" error

    So,
    Yes that may be part of my problem, the return. However in the first two methods, that return gives me the result I am looking for. So, this may be where I am going wrong. This is why I need...
  7. [SOLVED] fileDisplay class with "Exception in thread "main" java.util.NoSuchElementException: No line found" error

    This is my first post. I have been working on this class for a couple of weeks now, and can't seem to get it working right. Here are the parameters:
    * Write a class named FileDisplay with the...
  8. Replies
    2
    Views
    735

    Introduction for Edward

    Hello everyone,
    My name is Edward and I am very interested in learning Java. How it all started: Well, many moons ago I attended community college to get into programming. I went for one semester...
Results 1 to 8 of 8