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 Harnessing the Power of Objects Method Overloading

Error using Shift TAB

When using jshell and typing pd.fill( If I press shift TAB I'm getting this error.

Unexpected character after Shift-Tab. Use "i" for auto-import or "v" for variable creation. For more information see:
/help shortcuts

I cant get the other public void for fill to appear. Anyone else having this problem?

I too am having this issue. I googled the error and this page, funny enough, is the first result. I'll come back and edit/add if I find any more information.

EDIT: So I didn't find anything online, but I realized in the next part of the video, I just hit tab instead, and it's showing the full menu, even though I only hit tab when I put in

jshell> pd.fill(                                                                                                                                                                        
Signatures:                                                                                                                                                                             
void PezDispenser.fill()                                                                                                                                                                
void PezDispenser.fill(int pezAmount)         

And I'm only hitting Tab, not shift-tab. I can't explain why, but I imagine when using jshell in a non-browser environment perhaps it still needs the difference between tab and shift-tab.

4 Answers

SH Ding
SH Ding
3,125 Points

Seems to work when you hold down TAB

Brett Love
Brett Love
2,981 Points

Just hit tab twice. The first time shows the methods collapsed together. The second time will show you the signatures (including return values, name, and parameters). A third time will show documentation, if it is set up!

It's working with single TAB. jshell is really great feature in J9.

Same here

Leroy Sharp
Leroy Sharp
2,711 Points

I was also having this error. Try pressing TAB only once.