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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -