This week's study concluded
Operating eclipse tools, successful code execution
Proceed as follows
Create a new java project
1. Quick input alt + / syso output statement
2.public static void main (String args []) shortcut main + alt + / + enter
3.ctrl + Mouse Click here for details
Note 4. The three kinds of single-line comments // 2. A method of multi-line comment / * * / 3. Document annotation /**.....*/
5. Add the output inside the "+" indicates a connector
JRE to run the local environment, src for the preparation of source code
Simple applications, the output of a floating point number, and find flaots the maximum, minimum.
package javatext1Pro;
{class javatext1 public
public static void main (String [] args) {
// output a floating point number, a special bit, there must be used in a digital behind f represents
a float f = 1.1f;
System.out.println ( "f =" + F);
// float obtaining maximum, minimum
float max = Float.MAX_VALUE;
float min = Float.MIN_VALUE;
System.out.println ( "max =" + max);
System.out.println ( "= min" min +);
}
}
Operating results above.