Skip to content

Instantly share code, notes, and snippets.

@alvarogarcia7
Created February 7, 2015 18:20
Show Gist options
  • Save alvarogarcia7/258faea12cb9375539fe to your computer and use it in GitHub Desktop.
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
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