Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. m("fahiehn fmesaiogmsao");
  2.  
  3. }
  4. static void m(String[] s) {
  5. String output = "";
  6.  
  7. if (s.length > 0) {
  8.  
  9. for (int i = 0; i < s.length;i++) {
  10. StringBuilder sB = new StringBuilder(s[i].toLowerCase());
  11. sB.reverse().replace(0, 1, sB.toString().substring(0, 1).toUpperCase());
  12. String element = sB.toString();
  13. output += element + " ";
  14.  
  15. }
  16. System.out.println(output);
  17.  
  18. } else {
  19. System.out.println("no arguments");
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement