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 trialHenrik Granstroem
3,127 Points[ ] doesnt work in my workspace
I'm doing the course of Data Structure, and I'm suppose to write this array line in java-repl. But I can't type [ ]. When I type Alt Gr + 8, it should make the character, but it deletes the chracter to the left instead and when I type Alt Gr + 9 it should make the other one of the brackets, but nothing happens. Some bugs in the workspace function?
4 Answers
Matthias Margot
7,236 PointsI had the same issue and like anders already said its due to the console in workspaces not reading certain commands on different keyboards other than the english one. This can also become a problem when you start working with IDE's (integrated development environments like atom.io, android studio or eclipse for example) since they have shortcuts that sometimes only work for certain keyboards (stuff like CTRL + C althought this does work on any keyboard). I'd recommend you make an effort to change to the english keyboard layout if you're serious about getting into coding since you will meet a couple of problems connected to not having the keyboard layout a certain software was designed to work with. It doesn't take too long to get used to it, let's say 1-2 weeks tops and til then you can have a picture of the english keyboard printed out next to you so you can look where a certain sign is while you learn it (that's how i did it at least).
Anders Björkland
7,481 PointsHm. I don't know the solution to this one, but I had the same problem as you are having. It probably is because the repl is defaulting to an English keyboard layout. [] is at the place where (if you have a Swedish layout) you have å and ¨. See if that helps.
Henrik Granstroem
3,127 PointsHi guys!
Yes, that makes sence! Problably it is that issue. I'm using Swedish layout, since I'm Swedish, lol.
Thanks for answers and sharing your experiances. :)
Ismail KOÇ
1,748 Pointshttp://www.alt-codes.net/ check this site and look at alternative way to write symbols
Jasper Peijer
45,009 PointsJasper Peijer
45,009 PointsUsing an English UK keyboard should work. Then you can just use the key for the curly braces without pressing shift.