Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Steven Yang
    Steven Yang
    7,515 Points

    About the snack array...

    Posted September 8, 2022 11:47pm by Steven Yang
    Steven Yang
    7,515 Points
    • Java
    • Java Arrays
    • Creation
    • Array Literal Shortcut

    1 Answer

  • Paul Zutrau
    Paul Zutrau
    7,423 Points

    I am unable to complete question on java arrays.

    Posted July 12, 2022 10:53am by Paul Zutrau
    Paul Zutrau
    7,423 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    2 Answers

  • Sam Katz
    Sam Katz
    2,986 Points

    How do I declare an array of object references?

    Posted February 24, 2022 1:43pm by Sam Katz
    Sam Katz
    2,986 Points
    • Java
    • Java Arrays
    • Creation
    • Declaring Arrays

    1 Answer

  • Maryam Kamar
    Maryam Kamar
    2,549 Points

    what does "primitive" mean?

    Posted February 6, 2022 7:39pm by Maryam Kamar
    Maryam Kamar
    2,549 Points
    • Java
    • Java Arrays
    • Creation
    • Declaring Arrays

    1 Answer

  • Ahmed Matar
    Ahmed Matar
    2,231 Points

    how can i solve it?

    Posted November 24, 2020 11:47am by Ahmed Matar
    Ahmed Matar
    2,231 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • Mohamad AbouHelal
    Mohamad AbouHelal
    164 Points

    Array

    Posted November 3, 2020 8:20pm by Mohamad AbouHelal
    Mohamad AbouHelal
    164 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    4 Answers

  • Todd Baker
    Todd Baker
    17,207 Points

    Why use arrays when ArrayLists exist?

    Posted December 1, 2019 10:24pm by Todd Baker
    Todd Baker
    17,207 Points
    • Java
    • Java Arrays
    • Creation
    • Declaring Arrays

    2 Answers

  • Ryan Clinefelter
    PLUS
    Ryan Clinefelter
    Courses Plus Student 1,380 Points

    This code doesn't work

    Posted March 22, 2019 9:35pm by Ryan Clinefelter
    Ryan Clinefelter
    Courses Plus Student 1,380 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • Veselin Bogdanov
    Veselin Bogdanov
    1,703 Points

    Create an array literal objective.

    Posted October 14, 2018 5:20pm by Veselin Bogdanov
    Veselin Bogdanov
    1,703 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • daniel lynes
    daniel lynes
    8,900 Points

    Help with Illegal expression error

    Posted October 13, 2018 4:14pm by daniel lynes
    daniel lynes
    8,900 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    0 Answers

  • ahea joki
    ahea joki
    45 Points

    how please !!!

    Posted September 29, 2018 5:04pm by ahea joki
    ahea joki
    45 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    2 Answers

  • abdenaser kaddouri
    PLUS
    abdenaser kaddouri
    Courses Plus Student 50 Points

    java challenge 1 task 1 i cant do it need help

    Posted September 25, 2018 7:22pm by abdenaser kaddouri
    abdenaser kaddouri
    Courses Plus Student 50 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • Owen Hansen
    Owen Hansen
    4,226 Points

    jshell not found using console in workspace for Declaring Arrays video. Any ideas?

    Posted June 8, 2018 9:33pm by Owen Hansen
    Owen Hansen
    4,226 Points
    • Java
    • Java Arrays
    • Creation
    • Declaring Arrays

    1 Answer

  • Conner Mack
    Conner Mack
    7,309 Points

    i need help on this one

    Posted March 15, 2018 5:39pm by Conner Mack
    Conner Mack
    7,309 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • Timmie Nilsson
    Timmie Nilsson
    4,463 Points

    Can't type brackets [] in jshell.

    Posted March 11, 2018 9:51am by Timmie Nilsson
    Timmie Nilsson
    4,463 Points
    • Java
    • Java Arrays
    • Creation
    • Declaring Arrays

    1 Answer

  • Godfrey Tobias
    Godfrey Tobias
    19,833 Points

    In the class TeachersExamples there are two methods. One shows a longer version of how to create an array. Your task is

    Posted January 16, 2018 12:30am by Godfrey Tobias
    Godfrey Tobias
    19,833 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • yared sisay
    yared sisay
    98 Points

    I need help with the java arrays literal method of the exercise. it did not work for me I don't know why?

    Posted January 3, 2018 3:40pm by yared sisay
    yared sisay
    98 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    1 Answer

  • Anil kumar N
    Anil kumar N
    658 Points

    Is it necessary to learn the java course sequentially track by track or we can choose directly Arrays track after basics

    Posted December 18, 2017 2:36pm by Anil kumar N
    Anil kumar N
    658 Points
    • Java
    • Java Arrays
    • Creation
    • Array Literal Shortcut

    6 Answers

  • Bardhyl Bytyqi
    Bardhyl Bytyqi
    14,558 Points

    Arrays

    Posted November 10, 2017 3:10pm by Bardhyl Bytyqi
    Bardhyl Bytyqi
    14,558 Points
    • Java
    • Java Arrays
    • Creation
    • Create an array literal

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord