How to write java program:
- create folder to create new file(Application.java)
- To write a java program to save the file
- If you create a file the file must save (filename.java)
- And compile the java program in the terminal use(javac filename.java) to check the java program code
- If any error they appear on the terminal
- If compile the program the program name change (Application.class)
My error :
I will write java program my first program i well make mistake and error in the program i learn to how modify the program, and to run the program
I have error in Public staic void main(string args[]){}
so i have error on (String args[]) the string name must start capital letter to start
And my next error system.out.println(); this also capital letter to write a program start (System.out.println();)
*And upload my java program file in git:
*
- Open terminal in file and to check the status of git (git status) appear list of file
- Upload the file to git,using (git add . filename)
- and next step (git push) command to upload the file in git
- And enter the username,password to login to upload the filein git lab
Top comments (0)