The problem is the following, when I receive a word I must create a code where the word returns but in uppercase and lowercase example-- paneton - PaNeToN. Here I leave my intent, I only capture the letters of odd order of the word and I turn them into capital letters.
public void palabra(View v) {
String p = "",im="",ip="",m="";
int k=0;
String a = et1.getText().toString();
int z=p.length();
for(int i=0;i< z;i++){
p=a.substring(i,i+1);
k=i%2;
if(k==0){
m=m+p;
}
im=m.toUpperCase();
}
tv1.setText(im);
}