Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m("fahiehn fmesaiogmsao");
- }
- static void m(String[] s) {
- String output = "";
- if (s.length > 0) {
- for (int i = 0; i < s.length;i++) {
- StringBuilder sB = new StringBuilder(s[i].toLowerCase());
- sB.reverse().replace(0, 1, sB.toString().substring(0, 1).toUpperCase());
- String element = sB.toString();
- output += element + " ";
- }
- System.out.println(output);
- } else {
- System.out.println("no arguments");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement