Created
January 26, 2015 13:01
-
-
Save kineticz/4c640f2b1a836e766941 to your computer and use it in GitHub Desktop.
symbol not found?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.company; | |
| public class Main { | |
| public static void main(String[] args) { | |
| for(int i = args.length() - 1; i >= 0; i--) { | |
| reverse(args[i]); | |
| } | |
| System.out.println(); | |
| } | |
| public static void reverse(String s) { | |
| for(int i = s.length() - 1; i >= 0; i--) { | |
| System.out.print(s.charAt(i)); | |
| } | |
| System.out.print(" "); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment