Guest User

Untitled

a guest
Nov 9th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. String aux;
  2. int cont = 0;
  3.  
  4. aux = cadena.substring(cadena.length()-1);
  5.  
  6. for (int i = 0; i < cadena.length()-1; i++) {
  7. if(cadena.substring(i,1).equals(aux)) {
  8. cont++;
  9. }
  10. }
Add Comment
Please, Sign In to add comment