I tried creating a new file in my android app project in the android studio named "TestCode.java" with code
public class TestCode {
public static void main(String[] args) {
int myStr = 11;
System.out.println(String.format("%06d",myStr));
}
}
when I ran this particular static method by right-clicking on this file, it still ran Gradle build and gave me the errors from my main project and didn't print the result of this file.
Is there any way to just test this simple java code independently in the same project and avoid Gradle Build for the whole project.
currently, I have to open another program "IntelliJ" to test these simple java codes.