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 1 of 1

Thread: Skillstorm Intro to Coding Java question Arrays

  1. #1
    Junior Member
    Join Date
    Mar 2025
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Skillstorm Intro to Coding Java question Arrays

    What part of this answer is wrong?

    // create an ArrayList of Strings

    ArrayList <String> list = new ArrayList<>();

    // add XYZ to the list

    list. add ("XYZ");

    // print element at index 2

    System.out.println(list. get (2));

    // print how many Strings are in the list

    System.out.println(list. item ());
    Last edited by valcodes; March 9th, 2025 at 04:08 PM.

Similar Threads

  1. Replies: 1
    Last Post: June 4th, 2021, 06:36 PM
  2. Confusion with the question about this coding
    By mindful314 in forum What's Wrong With My Code?
    Replies: 10
    Last Post: May 14th, 2014, 02:21 PM
  3. intro & a question!
    By thechooch in forum Member Introductions
    Replies: 1
    Last Post: July 20th, 2013, 10:51 AM
  4. Very basic coding question, I'd appreciate feedback.
    By amsh in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 15th, 2012, 01:35 PM
  5. Replies: 2
    Last Post: February 19th, 2012, 07:36 AM

Tags for this Thread