How to write java on mobile phone
Usually we write java programs on the computer, rarely on the mobile phone Writing programs is inconvenient because the mobile phone screen is small, and the IDE is not as easy to use as a computer. However, mobile phones are relatively convenient. You can write code and practice your skills anytime and anywhere. Let’s introduce how to write Java programs on mobile phones.
1. Download and install the software
Software name: Java N-IDE-Android Builder-Java SE Compiler
2. Enter the software
When you first enter, you will be prompted to create a project, package name, and main method class. You can also Don't create it yet. Click the icon in the upper left corner to see the project working directory, as shown below:
Since the project has not been created, the directory is empty.
3. Create project method
The method is relatively simple, and is created in eclipse The projects are very similar.
Picture explanation:
#1) After writing the project information, the system will automatically create it and distribute the package.
2) We click InOut.java and write specific code. Here is the simplest example, which is to output Hello Java.
Run the program (click the triangle icon)
php Chinese website, a large number of free Java introductory tutorials, welcome to learn online !
The above is the detailed content of How to write java on mobile phone. For more information, please follow other related articles on the PHP Chinese website!