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

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -