Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
antiterra
· 15y ago · 0 comments
gWU`UAXYjT[ig\\eBWca looks like 20 characters to me, why would k.size return 19?
Comments
[–]
CodeMage
15y ago
Because \\ is an escape for \.
[–]
jorgeortiz85
15y ago
Because Java/Scala strings use \ as an escape character, so the string "\\" parses as a string with a single backslash character, not two.