Search:

Type: Posts; User: matt0605

Search: Search took 0.10 seconds.

  1. Re: Reading a particular string and printing the line that contains the string from a text file

    Thanks for your assistance. I did a little reading on the String Class and chose the startsWith(). It did what I wanted it to do.


    import java.io.*;
    import java.nio.*;
    import...
  2. Re: Reading a particular string and printing the line that contains the string from a text file

    Hey Everyone, thanks for the your input and I appreciate the spoonfeeding info. As I mention I am new to Java and just wanted to get pointed in the right direction. It seems there are different ways ...
  3. Re: Reading a particular string and printing the line that contains the string from a text file

    I made the following change :
    if (line.equals("Yellow"))
    and it gave me the line that only starts with "Yellow" as the string. I believe that a start, but I want to print all the lines that start...
  4. Reading a particular string and printing the line that contains the string from a text file

    Hello,
    Please point me in the right correction. I am trying to read the test.txt file and print all the lines that contains the string "Yellow".

    Thanks!




    //package textfiles;
    import...
  5. Re: Trying to connect to a sample Java DB database

    Thanks, the advice below seemed to do the trick and got rid of the error. Below is what I did.
    "Right click on project node, go to Set configuration, select the main class for the application. Then...
  6. Re: Trying to connect to a sample Java DB database

    Edited the post with the code tags!
  7. Trying to connect to a sample Java DB database

    Please help!
    I am following a learning Java book and trying to access the sample Java DB database with NetBeans but getting this error below. Thanks!

    run:
    Error: Could not find or load main...
  8. Replies
    0
    Views
    1,040

    Hello Java Community

    I'm new to Java as of July 2012 and teaching myself through various tutorials. Thanks to all those who take their time to share their knowledge.
Results 1 to 8 of 8