Java Solution | Easy and Faster
Comment for any doubt :)\n\nclass Solution {\n    // I used this function to check whether n1 and n2 are No-Zero integer or not. \n    public boolean isContainz
Comment for any doubt :)\n```\nclass Solution {\n    // I used this function to check whether n1 and n2 are No-Zero integer or not. \n    public boolean isContainzero(int num1, int num2 ){\n        if(num1 == 0 || num2==0)\n            return true;\n        while(num1 > 0) {\n            if(num1 % 10 == 0)\n                return true;\n            num1 /= 10;\n        }\n         while(num2 > 0) {\n            if(num2 % 10 == 0)\n                return true;\n            num2 /= 10;\n        }\n        return false;\n        \n}\n    public int[] getNoZeroIntegers(int n) {\n        int[] ans = new int[2];\n        int n1;\n        int n2;\n        for(int i=1;i<=n;i++){\n            n1=i;\n            n2=n-i;\n            boolean return_ = isContainzero(n1,n2);\n            if(return_==true){\n                isContainzero(n1,n2);\n            }else{\n                ans[0]=n1;\n                ans[1]=n2;\n                break;\n            }\n                   \n        }\n        return ans;\n        \n    }\n}\n```
['Java']