Guest User

Untitled

a guest
Jun 24th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment