Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    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
  2. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    Sorry, I don't.
    Google is the only place I can suggest.
  3. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    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.
  4. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    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...
  5. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    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...
  6. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    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?
  7. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    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...
  8. Replies
    16
    Views
    1,831

    Re: stack project-runtime error

    Please copy and paste the full text of the error message here.
Results 1 to 8 of 8