Created
February 7, 2015 18:20
-
-
Save alvarogarcia7/258faea12cb9375539fe to your computer and use it in GitHub Desktop.
Java snippet for code review - purpose: cli application for adding all numbers that come as parameters
This file contains 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
public class Main { | |
// See http://alvarogarcia7.github.io/blog/2015/02/07/open-discussion-on-code-reviews/ | |
public static void main(String[] args){ | |
int a = Integer.parseFrom(args[0]); | |
int b = Integer.parseFrom(args[2]); | |
int c = Integer.parseFrom(args[1]); | |
System.out.println(a + b + c); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment