Thank You. It worked out.
Type: Posts; User: Goldfinch
Thank You. It worked out.
At this point it compiled fine, but no values seem to be passed to the println statement at the bottom of the class since the console isn't printing the values in the text file to the console.
...
Thanks, that worked and I've also learned a lot about how to read the compiler errors too.
import java.io.*;
import java.util.logging.Logger;
import java.util.logging.*;
public class...
That worked, and the program compiled. I found a way to modify the program further, supposedly so it can print its inputs from the file it reads. That created some additional challenges. Earlier I...
Okay, you were right. It was a bracket problem and then these errors cropped up again (for the part Level that I guess was never resolved). I'm new to this forum, is it appropriate for me to ask this...
so I tried some changes and commented out my print statements near the end (since that's a separate mess there):
import java.io.*;
import java.util.logging.Logger;
public class Prog1{
...
Here were the compiler errors:
File: /Volumes/A-H/ajs211/Prog1/Prog1.java [line: 9]
Error: /Volumes/A-H/ajs211/Prog1/Prog1.java:9: cannot find symbol
symbol : variable Logger
location:...
Sorry, don't know how this works, there were some compile errors with the symbols Level and Logger both times they appeared. At one point, I tried defining those variables but that did not work...
I was trying to write part of a program to read in lines from a text file (in the same directory as the .java and compiled class) and print out those lines. I know a little java, but not much, and I...