2.22 Study Notes

java

Today is the main learning process control and an array of in-depth
java switch statement can not be used boolean type, and other C are the same, more than a unique foreach loop C, he can directly traverse the entire array or collection, you do not need to know the length of the array or set. Also learned a return to stop the cycle (the entire main will directly stop)
can not be defined in his definition of the length of the array when, and only when dynamic initialization to determine the length of the array, the default initialization values are 0 or NULL or false. java in the array can be said that no multidimensional arrays because multidimensional arrays is another element in the array is an array, and the array is an object, the equivalent of a multidimensional array is an extension of a one-dimensional array
also learned the tools, I think it and C ++ header files is a thing of nature, which contains a lot of class (function) let us use them very easy to use.
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Published 21 original articles · won praise 3 · Views 1725

Guess you like

Origin blog.csdn.net/weixin_45823991/article/details/104450950