Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Objects Meet Objects Welcome Back

Cannot type in $ signs on a Swedish EU-keyboard inside jshell

I have a problem to follow along in the video from the point where $3 ==> false, because I cannot type in $ without starting a full thread dump process. To type in a $ it's Alt Gr+4 on a Swedish keyboard.

The process starts like this:

jshell> 2017-02-21 13:20:28                                                                           
Full thread dump Java HotSpot(TM) 64-Bit Server VM (9-ea+139 mixed mode):                             

"process reaper" #24 daemon prio=10 os_prio=0 tid=0x00007f4c64204000 nid=0x1c9 waiting on condition [0
   java.lang.Thread.State: TIMED_WAITING (parking)                                                    
        at jdk.internal.misc.Unsafe.park(java.base@9-ea/Native Method)                                
        - parking to wait for  <0x00000000f8152550> (a java.util.concurrent.SynchronousQueue$TransferS

and goes on for thousands of lines.

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi Richard! I also live in Sweden and use a Scandinavian keyboard layout. And I really hope you are doing this from a Windows system, because I've yet to find a way to make it work on my Mac. But you can enter an "alt code". In this case for the dollar sign, you hold down alt and then press 3 6. Alt + 36. It will pause for a second, but then it will write out the dollar sign.

You can find a full list of "alt codes" here. I hope this helps! If you happen to be doing this on a Mac let me know and I'll try and do some further research! :sparkles:

Thanks for the answer! Luckily I work in Win 10 at the moment (will have to figure it out on my Macbook) but now I can at least get further in the exercises :)

Note to others: This will only work with the Numpad.