We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello guys,
It can copy part of a String, (from a certain position)? I am unable to copy the second part (after the stroke) ... What could be wrong?
String str = "1234-5678";
String sub1 = str.substring(0,4);
String sub2 = str.substring(4,4);
println("Str/Sub: " + str + " - " + sub1 + " - " + sub2);
Thank you,
Answers
You are coping from index 4 to index 4 so... nothing
try
Hello, thanks for the return,
OK, it worked so yeah ...
Thank you very very much,
Sorry the English, worked yes, it's OK ...
Thank you
My pleasure :)
The english is fine, sem problemas ;)
OK, thanks for the help... :)