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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.