Java String Lengths [SOLVED]
Umm...okay. I have just come across something very weird within Java, and I'm interested to see if anyone knows a way to fix this.
I have the following bit of code in a GUI application that I'm writing:
My idea here is to line up things into two columns of data. This works almost universally, except in 2 examples:
if(currentCode.length() > 11)
tab_string = "\t";
tab_string = "\t\t";
In both of those, there is an example where the arrow isn't lined up. However, there are also other examples (where the code is actually LONGER than the one not displaying properly) that have the right arros spacing.
Can anyone tell me a good way to get around this? I can't figure out what's wrong, since it's working in 99% of the examples.