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...
Type: Posts; User: matt0605
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...
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 ...
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...
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...
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...
Edited the post with the code tags!
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...
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.