daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Nov 9th, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top