Search:

Type: Posts; User: Norm

Search: Search took 0.18 seconds.

  1. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    Check if values has 4 or more elements. If it does, get the first 4 elements for your data.
  2. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    Can you post what you want printed? If the values array has 4 or more elements do you want to see the first 4 elements? To see the contents of the values array use the Arrays class's toString...
  3. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    What prints out when you print out the value of the variable: data?
    Can you copy and paste here what is printed?
  4. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    What is printed out when you print out the value of the variable: data?
    Is is what you expect to see?
  5. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    String [] values =
    ...
    System.out.println(values [1] + "***");

    values is an array.
    How do know that the values array has two elements? 1 is the index for second element

    Where is the print...
  6. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    Where in the posted code is an array indexed?
    Can you copy and paste here the full text of the error message? You can't copy and paste from an image.


    The code should make sure the index does...
  7. Replies
    15
    Views
    1,681

    [SOLVED] Re: I can't isolate the first four colums y,m,d,t

    Can you post the console from when you execute the code that shows what it is doing?

    Add a println() to print out the value of data before it is split.
Results 1 to 7 of 7