Reversing words in a sentence without library functions
Anonymous
String str = "Google"; String rev = ""; int len = str.length(); for (int i = len - 1; i >= 0; i--) { rev = rev + str.charAt(i); } System.out.println(rev);
Check out your Company Bowl for anonymous work chats.