I recently launched an online Java to Smali converter . It's a handy tool for Smali learners and Android Reverse Engineers. As app modder, I often need to convert my code written in Java language to Smali. So that I can embed the converted Smali code inside the apk file. Though I could manage writing code directly in Smali language, I feel much comfortable writing programs in Java than any other language.
During the process of conversion, the Java content is complied using Java 1.8 and Android API 28 compilers. You can find the error on the right-side text area if anything happened.
Copy-paste your Java coding and click convert button. It's that simple. The converted Smali code will appear in seconds. Hit the like button found at the bottom of Smali editor if deserves. Happy coding!