JAVA || Solution || while-loop basic
\n\n# Code\n\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        int i=0, j=n;\n        while(i <= j){\n            i++;\n            j--;\n
\n\n# Code\n```\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        int i=0, j=n;\n        while(i <= j){\n            i++;\n            j--;\n            if(noZeros(i) && noZeros(j)){\n                return new int[]{i, j};\n            }\n        } \n        return new int[]{}; // never reach\n    }\n    private boolean noZeros(int n){\n        while(n>0){\n            if(n%10 == 0){\n                return false;\n            }else{\n                n /=10;\n            }\n        }\n        return true;\n    }\n}\n```
['Java']