BaR5uk

DoubleComp.java

Dec 4th, 2021 (edited)
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. //      Sokoban puzzles auto generator
  2. //      https://dxdy.ru/post1541620.html#p1541620
  3. //      2021 dec B@R5uk
  4.  
  5. public class DoubleComp {
  6.    
  7.     public static boolean isGreater (int a1, int b1, int a2, int b2) {
  8.         return a1 > b1 || a1 == b1 && a2 > b2;
  9.     }
  10.    
  11.     public static boolean isGreater (short a1, short b1, short a2, short b2) {
  12.         return a1 > b1 || a1 == b1 && a2 > b2;
  13.     }
  14. }
  15.  
Add Comment
Please, Sign In to add comment