Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    3,227

    Re: Reading a lines from text file

    You can use the Scanner class to read the file.
    And the PrintWriter class to write to a file.

    Please explain in more detail what you want to do with a hashmap.
  2. Replies
    4
    Views
    3,227

    Re: Reading a lines from text file

    The StringTokenizer class does NOT read data from files. You need to use a class that reads from a file.
    For student exercises, you could use the Scanner class.
Results 1 to 2 of 2