Search:

Type: Posts; User: Json

Search: Search took 0.35 seconds.

  1. Replies
    16
    Views
    4,646

    Re: how to know user pressed a key in the keyboard

    Because this if statement.


    if (input == "y") {

    Should look like this to work.


    if ("y".equalsIgnoreCase(input)) {
  2. Replies
    16
    Views
    4,646

    Re: how to know user pressed a key in the keyboard

    Possibly :/

    // Json
  3. Replies
    16
    Views
    4,646

    Re: how to know user pressed a key in the keyboard

    haha

    *cough* didnt expect that from you *cough*

    Maybe we need to start putting together some nice JNI common stuff :)

    // Json
  4. Replies
    16
    Views
    4,646

    Re: how to know user pressed a key in the keyboard

    I dont think its possible to just detect one keypress from the System.in inputstream unless the keypress is the return/new line key.

    The problem is that the OS does not send the data to the...
  5. Replies
    16
    Views
    4,646

    Re: how to know user pressed a key in the keyboard

    Maybe use the Scanner class.

    // Json
Results 1 to 5 of 5