Search:

Type: Posts; User: Mr.777

Search: Search took 0.20 seconds.

  1. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Further processing, like i've my algorithm to input the number of answers(For now working on integers) to a robot and to save them for further processing. Related to AI
  2. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Depends upon the scenarios. If it's the writing speed, for sure no user can. But if it's learning speed, computer can't (Again depends if an algorithm is specified for a computer to do so). Well this...
  3. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    You sound logical. Coz all it depends upon the user. Thanks for your feed back and help.
  4. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    No, i ain't idiot :)
    That didn't work too. I actually want it to get input as far as there is no Enter pressed. Well i managed to get it working.....


    int val=0;
    int arr[]=new int [5];...
  5. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    while((val=System.in.read())==' '){
    //here
    }

    If i am not wrong, it's an empty character. Damn :@
    Norm, thanks, i got it. I must get space ASCII :P How idiot i am :P
  6. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    It doesn't even get inside the loop :) I don't know why.
    Also, if i do


    int val=0;
    try{
    val=System.in.read();
    }catch(Exception e){
    System.out.err(e.getStackTrace());
    }
  7. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    The problem is i can not get data inside array. Array still prints 0 as it's not even assigned any value. I know this will read character as it prints me ASCII but i somehow unable to manage to move...
  8. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Yes, and that is


    int val;
    int [] arr= new int[5];
    int i=0;
    while((val=System.in.read())==' '){
    arr[i]=val;
    i++;
    }
  9. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Ofcourse Fastest execution time. I don't care for lines of code actually.
  10. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    1 2 3 (Enter)
    This is how data will be entered.
    And i am doing exactly like this but the problem is i want to know the most efficient way of getting input like this. Do you know any?
  11. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Okay, may be there is nothing what i think of achieving in it. Thanks for the time Norm.
  12. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Sorry Norm, i know i am not able to explain what i need. Let me try once more... uhh......huh
    What i need is, the most efficient way of getting 'N' times input separated by a space between each...
  13. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Yes, user will enter through Keyboard.
  14. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    I don't want to read String everytime. What if i need to read integer values separated by a space each, 'N' times. I am looking for efficient method to read Integers separated by space 'N' times.
  15. Replies
    29
    Views
    5,129

    Re: Input in a two Dimensional Array.

    Let's assume, i will start my program and get a number from user say 'N'
    And no, input record can not contain more than 'N' values. All values will be space separated. I've managed to do this by...
  16. Replies
    29
    Views
    5,129

    Input N number of times!!!

    Can anyone give me idea of getting input 'N' number of times with a space difference between every input.
    Forexample:
    1 2 3 4 . . .

    Note: We don't know the 'N' initially and i want to get input...
Results 1 to 16 of 16