The basis of common methods Java

What is the method?

 

format

 

 

 

 

 

A method of execution flow

 

The list of parameters, return values

 

 

Whether the return value

 

 

 

Is a parameter when the class

 

The difference between break and continue

// break is the end of the whole body of the loop, continue ending a single cycle 

say:

the while (X ++ <10)
{
IF (X ==. 3)
{
BREAK;
}
the printf ( "% D \ R & lt \ n-", X);
}
result, the output 12 withdrew from the whole while loop

but if Continue
while (X ++ <10)
{
IF (X ==. 3)
{
Continue;
}
the printf ( "% D \ R & lt \ n-", X);
}
results is: 1245678910 he simply not visible output 3, as he concluded this cycle

Array

 

 

 

 

 

 Interception and conversion of strings

  1. interception substring, splice method

 

 

  2. The conversion, an array of characters and strings Tostring ToCharArray

 

 

   2.1. Conversion converting between integer and string (entry box ??)

 

 

 

 

 Object-oriented brief overview of the Java method

The method has been fixed written, what function what method has a special mark,

You have to do is: What kind of a functional method call, then you need to put the array () inside the line.

 

 

 

 

 

   1. Packaging

 

 

 

Person class (determining function, and other features) using

 

 

  2. Inheritance

  3. Polymorphism

 

Random number (Random)

  format:

 

  The difference between the next and nextint

 

 

 Guess the game

 

 

 Math mathematical tools

 

 

 

 

 

 Constructors brief

 

 

 

 静态与非静态之间的关系

 

Guess you like

Origin www.cnblogs.com/lihailong/p/11595525.html