Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int keysolver(String s) {
- String temp = s;
- int i;
- if(temp.length()>0) {
- for(i=0;i<temp.length();i++) {
- char letter = temp.charAt(i);
- int distance = letter-'a';
- return distance;
- }
- }
- else {
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement