daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jun 24th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     public static int convertAscii(String word) {
  3.         int ascii = 0;
  4.  
  5.         for (int i = 0; i < word.length(); i++) {
  6.             char c_ascii = word.charAt(i);
  7.             ascii += (int) c_ascii;
  8.         }
  9.  
  10.         return ascii;
  11.     }
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