java - copy only portion of char[] into String -
i have array char[] ch. question following. how can merge values ch[2] ch[7] string? achieve without looping through char array. suggestions?
thanks taking time answer question.
use new string(value, offset, count)
, reference.
where offset starting index , count index difference. in case, it's 7-2=5.
obviously, value character array.
Comments
Post a Comment