How to get alternate character from character array in java? -


i have character array array have 10 values .i want alternate character 1st,3rd,5th..... array .please 1 tell me how that

for(int = 0 ; < arr.length ; i+=2){     system.out.println(arr[i]);//alternate chr } 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -