Learn JAVA basic to advance from here
First day: How to install Netbeans
- go and click for application file for java-install it , (jdk-8u73)
go to c drive> program file. java > jdk >bin! .. copy all path
then go through the computer properties > advance sys setting> environment variable>
in top part of environment variable , click on "new "
variable name : JAVA_HOME
variable value: ( paste that you have copied before )
***********************
To create a new java project .
1. go to file menu
2.new project
Getting To Know My Java Programming :
JAVA need main method to run :
public class Hello {
/** * My first java program */
public static void main(String[] args) {
//prints the string "Hello world" on screen
System.out.println("Hello world!");
}
}
Here we use
"public class Hello " is the main class in this program.
Post a Comment