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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or 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
      • • Vibe Coding
    • Showing results for:
    • Java
    • Java Objects
    • Delivering the MVP
    • Arrays and Command Line Arguments
    • Close
  • 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 on Apr 10, 2019 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 on Apr 1, 2019 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 on Feb 11, 2019 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 on Dec 15, 2018 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 on Dec 12, 2018 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 on Feb 11, 2018 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 on Dec 1, 2017 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 on Oct 20, 2017 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 on Oct 7, 2017 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 on Aug 25, 2017 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 on May 23, 2017 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 on Feb 28, 2017 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 on Feb 8, 2017 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 on Feb 8, 2017 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 on Jan 25, 2017 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.