Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects Delivering the MVP Arrays and Command Line Arguments

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 ?

I honestly dont understand what was the objective of this lesson? I dont understand why or when would i use this ? (ARRAYS AND CONMMAND LINES)

Linus Johansson
Linus Johansson
12,469 Points

command lines are something you would use to help someone else understand your code. it can also be a little reminder for yourself if you revisit something that you've coded a long time ago. for example, this code block does this, etc

1 Answer

As a developer you will be using command lines, arguments and arrays all the time. A lot of the programs that developers use will be accessible via the terminal aka the command line. Lots of back end development work will happen here. Eventually, you might even write your own scripts to automate things that run via the command line.

This is true even as a web developer. You will install a lot of your front end and back end packages via npm which is part of Node.js. If you are doing machine learning and data analysis, you will definitely be accessing the terminal from time to time.

Hope this helps.