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
  • Joshua Thao
    Joshua Thao
    6,439 Points

    How do we set the "Answer" in an IDE? I have Intellij and if I run my code it just says answer is required.

    Posted April 10, 2019 2:21pm by Joshua Thao
    Joshua Thao
    6,439 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    4 Answers

  • Victor Curtis Jr
    Victor Curtis Jr
    5,268 Points

    Getting 1 Error when Compiling

    Posted April 1, 2019 9:30am by Victor Curtis Jr
    Victor Curtis Jr
    5,268 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • Rana P
    Rana P
    885 Points

    I need computer to choose random word

    Posted February 11, 2019 7:30pm by Rana P
    Rana P
    885 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • <noob />
    <noob />
    17,063 Points

    I still dont fully understand how craig implemented that when we start the program the program get a word by us

    Posted December 15, 2018 10:51am by <noob />
    <noob />
    17,063 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • <noob />
    <noob />
    17,063 Points

    What if i want to make a method that pick a different word from an array in a random order when i start the game?

    Posted December 12, 2018 9:24pm by <noob />
    <noob />
    17,063 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    2 Answers

  • Chris Rubio
    Chris Rubio
    1,643 Points

    I honestly dont understand what was the objective of this lesson? I dont understand why or when would i use this ?

    Posted February 11, 2018 6:03pm by Chris Rubio
    Chris Rubio
    1,643 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • Anika Mehta
    Anika Mehta
    107 Points

    I am coding in eclipse how can I provide answer on command line?

    Posted December 1, 2017 7:01pm by Anika Mehta
    Anika Mehta
    107 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    0 Answers

  • kristoffer tølbøll
    kristoffer tølbøll
    1,337 Points

    Why is it args.length and not array (or the name of the array.legnth)

    Posted October 20, 2017 3:34pm by kristoffer tølbøll
    kristoffer tølbøll
    1,337 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • Diwakar Singh
    Diwakar Singh
    785 Points

    What is wrong with my code

    Posted October 7, 2017 5:29pm by Diwakar Singh
    Diwakar Singh
    785 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    args

    Posted August 25, 2017 6:24pm by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    0 Answers

  • Wan Nor Adzahari Wan Tajuddin
    Wan Nor Adzahari Wan Tajuddin
    2,438 Points

    Why no () needed on args.length == 0

    Posted May 23, 2017 3:43pm by Wan Nor Adzahari Wan Tajuddin
    Wan Nor Adzahari Wan Tajuddin
    2,438 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    2 Answers

  • Ranvir Sahota
    Ranvir Sahota
    9,844 Points

    When to use args

    Posted February 28, 2017 9:13pm by Ranvir Sahota
    Ranvir Sahota
    9,844 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

  • Araz kuberin
    Araz kuberin
    6,199 Points

    Arrays and Command Line Arguments

    Posted February 8, 2017 9:07pm by Araz kuberin
    Araz kuberin
    6,199 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    0 Answers

  • Christian Thieme
    Christian Thieme
    9,448 Points

    On the boolean applyGuess method, how are we adding char letter to the variable hits, since hits is a string?

    Posted February 8, 2017 7:25am by Christian Thieme
    Christian Thieme
    9,448 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    2 Answers

  • Ange G
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ange G
    Java Web Development Techdegree Student 1,647 Points

    Hi, how can i get [] on a jshell. I am using windows Operator System

    Posted January 25, 2017 11:46am by Ange G
    .a{fill-rule:evenodd;}techdegree
    Ange G
    Java Web Development Techdegree Student 1,647 Points
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments

    1 Answer

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