Last active
January 10, 2016 05:11
-
-
Save erikgunawan/6bd68b090c18bbc1f7b4 to your computer and use it in GitHub Desktop.
[HackerRank Solutions] Warmup - Solve Me First
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
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