Instantly share code, notes, and snippets.

Embed
What would you like to do?
Java snippet for code review - purpose: cli application for adding all numbers that come as parameters
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