Skip to content

Instantly share code, notes, and snippets.

@erikgunawan
Last active January 10, 2016 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikgunawan/6bd68b090c18bbc1f7b4 to your computer and use it in GitHub Desktop.
Save erikgunawan/6bd68b090c18bbc1f7b4 to your computer and use it in GitHub Desktop.
[HackerRank Solutions] Warmup - Solve Me First
import java.util.Scanner;
/*
* HackerRank Warmup - Solve Me First
* @author Erik Gunawan
*/
public class SolveMeFirst {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a;
a = in.nextInt();
int b;
b = in.nextInt();
int sum;
sum = solveMeFirst(a, b);
System.out.println(sum);
}
private static int solveMeFirst(int a, int b) {
// Hint: Type return a+b; below
return a+b;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment