Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    3,276

    Re: Regarding Keystrokes

    I can't recommend anymore than I said before:
    What do you want the data in the file to tell you? When you read the file, what actions will you take?

    Start at the end, what do you want to do with...
  2. Replies
    12
    Views
    3,276

    Re: Regarding Keystrokes

    You need to define what you want to do. What do you want the data in the file to tell you? When you read the file, what actions will you take?
  3. Replies
    12
    Views
    3,276

    Re: Regarding Keystrokes

    What you show appears to be text. It would be read as a String, not as int.

    In a compiled java program, KeyEvent.VK_UP etc are int.
  4. Replies
    12
    Views
    3,276

    Re: Regarding Keystrokes

    You can read data from a txt file as ints. See the Scanner class's nextInt method.
    Or you can convert String to int by using the Integer class's parseInt method.
  5. Replies
    12
    Views
    3,276

    Re: Regarding Keystrokes

    Please explain this in some more detail.
    What is the relationship between the KeyStroke class and the String class you are looking for?
    How do integers relate to the KeyStroke class?
Results 1 to 5 of 5