2012年12月7日 星期五

String to char array

if(content.toCharArray()[0]=='t'){

content is a string.
.toCharArray() is the function.
[0] Something you know already.

沒有留言:

張貼留言

Related Posts Plugin for WordPress, Blogger...