Skip to content

Instantly share code, notes, and snippets.

@gbajaj
Created July 8, 2019 20:16
Show Gist options
  • Save gbajaj/dc8c9f8e75e65d592a4811781f5ca541 to your computer and use it in GitHub Desktop.
Save gbajaj/dc8c9f8e75e65d592a4811781f5ca541 to your computer and use it in GitHub Desktop.
Java Simple Integer Comparison
public class Main {
public static void main(String[] args) {
int a = 10;
int b = 10;
if (a == b) {
System.out.println("true");
} else {
System.out.println("false");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment