Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Selecting a specific list

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Selecting a specific list

    Hello all. I have a problem with lists. And I have the following output when it is printed out to a text file:
    [{[5.1, 3.5, 1.4, 0.2, NaN];null}, {[4.9, 3.0, 1.4, 0.2, NaN];null}]

    So my question is how to set names for each set of the list. Or is it possible, for instance writing a string instead of null and if so how can i access the list with a specific name.


  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Selecting a specific list

    I've got it. It was a different method that forms the list and it was implemented in the constructor.

Similar Threads

  1. Writing to a specific line in a text file
    By The_Mexican in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 7th, 2011, 08:11 PM
  2. selecting even numbers from an array
    By Tate in forum What's Wrong With My Code?
    Replies: 7
    Last Post: November 29th, 2010, 07:03 AM
  3. Write ascii in a specific position of the file
    By generalitico in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: November 11th, 2010, 03:40 AM
  4. Replies: 0
    Last Post: February 23rd, 2010, 01:12 PM
  5. Need some general and specific advice.
    By Morevan in forum Loops & Control Statements
    Replies: 2
    Last Post: January 3rd, 2010, 10:31 PM