Public? int? intSum(){
int? Total? =? 0;
for(int? Me? =? 1; I<5 1; Me? ++){
Total? +=? Me;
}
System.out.println(" 1 added to 50, the result is: "? +? Total);
Return? Total;
The result is: 1275.
Java is an object-oriented programming language, which not only absorbs the advantages of C++ language, but also abandons the concepts of multiple inheritance and pointers that are difficult to understand in C++, so Java language has two characteristics: powerful function and simple use. As the representative of static object-oriented programming language, Java language perfectly realizes the object-oriented theory and allows programmers to carry out complex programming with elegant thinking mode? [ 1]。
Java is characterized by simplicity, object-oriented, distributed, robustness, security, platform independence and portability, multithreading and dynamics? [2]。 Java can write desktop applications, Web applications, distributed systems and embedded system applications.