Skip to content

Instantly share code, notes, and snippets.

@tonkatsu7
Created July 10, 2018 06:58
Show Gist options
  • Save tonkatsu7/1ddb4a4ff9834c634fe31ae9fa02cfc8 to your computer and use it in GitHub Desktop.
Save tonkatsu7/1ddb4a4ff9834c634fe31ae9fa02cfc8 to your computer and use it in GitHub Desktop.
CoderByte challenge Check Nums
import java.util.*;
import java.io.*;
class Main {
public static String CheckNums(int num1, int num2) {
if (num1 < num2)
return "true";
else if (num1 > num2)
return "false";
else
return "-1";
}
public static void main (String[] args) {
// keep this function call here
Scanner s = new Scanner(System.in);
System.out.print(CheckNums(s.nextLine()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment