Advertisement
porteno

Untitled

Nov 3rd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class Q3_Main {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. System.out.println(exchange(21611, 12116));
  6.  
  7. }
  8.  
  9. private static boolean exchange(int num1, int num2) {
  10. DigitStorage digimon1 = new DigitStorage(num1);
  11. DigitStorage digimon2 = new DigitStorage(num2);
  12.  
  13. if(digimon1.isSame(digimon2))
  14. return true;
  15. return false;
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement