In the daily Android development process, believe that sometimes need to write some Java test procedures, testing methods, algorithms, results are effective, reliable, Android Studio running Java program is not as convenient as eclipse, but Android Studio above can actually run Java applet, the following describes how to run a Java program
Step 1:file-–> new-–> New Module ... Then pop up a box in the more module to select the Java Library
Here we have a new successful Java project, so how to run the Java project? It's definitely not going to be a direct run.
Next
Then run directly, or right-click on the file run like Eclipse to
What do I do when the final test program is finished running? Module Right button does not have delete
Keep looking down.
Delete Settings.gradle This module's name after he will remind you to sync, you click Sync, the directory is not there, and then you go to delete delete build (corresponding module of the build file), and finally go to the folder where the project is deleted this Module,okay end.
Android Studio Running Java program