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!

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

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

was not able to get [] on jshell

1 Answer

Ronald Maldo
Ronald Maldo
5,532 Points

download java 9. https://jdk9.java.net/download/ open command prompt or cmd: go to java bin for example: C:\Program Files\Java\jdk-9\bin execute command "jshell"

BTW you can add in the windows environmental variables so that you can just directly type jshell without going to the java/bin