Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Q3_Main {
- public static void main(String[] args) {
- System.out.println(exchange(21611, 12116));
- }
- private static boolean exchange(int num1, int num2) {
- DigitStorage digimon1 = new DigitStorage(num1);
- DigitStorage digimon2 = new DigitStorage(num2);
- if(digimon1.isSame(digimon2))
- return true;
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement