Does the code do what you want?
I do not know what your mean by "sequence of letters".
Are you referring to the output of a sort. For example if b, c, a were sorted the sequence would be a,b,c
Type: Posts; User: Norm
Does the code do what you want?
I do not know what your mean by "sequence of letters".
Are you referring to the output of a sort. For example if b, c, a were sorted the sequence would be a,b,c
Sorry, I don't.
Google is the only place I can suggest.
Learn how to create a data file.
Then learn where to put the data file so the program can find it.
Then give the name of the file to the program when it asks for it.
Do you know how to use an editor? Like NotePad or wordpad
Do you know how to enter data into an editor?
Do you know how to save what you typed into the editor to a file?
If you can NOT do the...
Is there a file named: Test.java in the current directory when you execute your program?
That is a strange name for a data file. It looks like the name of your java source file.
Why do you want...
Is 8 the name of the file? You need to enter the name of a file.
What is the problem with entering the name of an existing file when the program asks for it?
Is because of these lines:
String file=in.readLine();
Scanner scan=new Scanner(new FileReader(file));
What do you want the Scanner class to do?
You are asking it to read from a file whose...
Please copy and paste the full text of the error message here.