单行注释// 多行注释/* */ 文档注释 /** */
![](https://img-blog.csdnimg.cn/img_convert/eea16f45e147f6dee5ef816a6a9f1a57.png)
![](https://img-blog.csdnimg.cn/img_convert/fd0fde9914edabe3b6af1b9df752fc73.png)
字面量的描述
![](https://img-blog.csdnimg.cn/img_convert/f059d3fc9403ac38f56c86eb9bb6c228.png)
![](https://img-blog.csdnimg.cn/img_convert/c50417b02ccecd2ba75e7df34b531ca5.png)
![](https://img-blog.csdnimg.cn/img_convert/3fd0f8fad223d327a12d7613db595cd1.png)
![](https://img-blog.csdnimg.cn/img_convert/84dc4d0110993cf0634a8cca7b104c42.png)
变量:
![](https://img-blog.csdnimg.cn/img_convert/c9fe2dfa09c85f7f3c735f42bf2a9516.png)
![](https://img-blog.csdnimg.cn/img_convert/38a0b290db3ccacce61af73e94f171a9.png)
![](https://img-blog.csdnimg.cn/img_convert/174f518bb12c57f497f310f38e42e6a1.png)
变量就像一个盒子 一开始里面存储的值是6.0
![](https://img-blog.csdnimg.cn/img_convert/4753a6fca082c1e188fabeae7a29a3b4.png)
然后往下走去看盒子里面的值 6.0
![](https://img-blog.csdnimg.cn/img_convert/d971fa79106e701540a84033d12a5c95.png)
往下走先执行等号右边 右边继续拿money里的值 把6.0取出来与4.0作运算
![](https://img-blog.csdnimg.cn/img_convert/f3ec1796abcdb8c90d4ad6872b5e6871.png)
然后算出来的结果是10.0
![](https://img-blog.csdnimg.cn/img_convert/2eed2a7a5845fae5fd3a028d35c176ec.png)
然后把10.0重新存储到变量的盒子里 然后访问变量10.0
![](https://img-blog.csdnimg.cn/img_convert/25bfdf1ef56e4f7ad60cf343c40a738c.png)
![](https://img-blog.csdnimg.cn/img_convert/2cad2f8aff3a46e4cce13d1ffc73f12e.png)
![](https://img-blog.csdnimg.cn/img_convert/27d5201b16b86ff03983a110e68b5546.png)
![](https://img-blog.csdnimg.cn/img_convert/31decd38727cdeba9d711ec1f3411fea.png)
![](https://img-blog.csdnimg.cn/img_convert/56bed81d10a397003feb935aa493a1ff.png)
![](https://img-blog.csdnimg.cn/img_convert/6eaa3bbf40ed915dfb5bd7f5bace1cd9.png)
![](https://img-blog.csdnimg.cn/img_convert/95d58be17929958a147ae54ef9bc1d51.png)
![](https://img-blog.csdnimg.cn/img_convert/29408a4f89a889c6c98e1d9fc8012ddb.png)
![](https://img-blog.csdnimg.cn/img_convert/50ea85c93f2ac7c7ba2614fb42f0ee1b.png)
![](https://img-blog.csdnimg.cn/img_convert/c429fcab8f9b29b7a9973e04ed51f4e3.png)
![](https://img-blog.csdnimg.cn/img_convert/8fcf46b1e935dd2b1925c2a540c98b18.png)
![](https://img-blog.csdnimg.cn/img_convert/2ba10b497a784f5617c5e700b5e8b8a2.png)
![](https://img-blog.csdnimg.cn/img_convert/63f80c2357b19cac0e3ef179a060adc8.png)
![](https://img-blog.csdnimg.cn/img_convert/84eda584ce06f623826ad4f538645710.png)
![](https://img-blog.csdnimg.cn/img_convert/e3a1d07a2deaddcd2652300e73de7be9.png)
![](https://img-blog.csdnimg.cn/img_convert/fae4674399a2cfec34e4be0813acc531.png)
![](https://img-blog.csdnimg.cn/img_convert/b281e86e0ed5a23e7ea1f25f52bb3fda.png)
![](https://img-blog.csdnimg.cn/img_convert/6278118996774cff451a4cf03a5da0b0.png)
![](https://img-blog.csdnimg.cn/img_convert/0c2b3fa4a4d989aad0257955c2f4497a.png)
![](https://img-blog.csdnimg.cn/img_convert/1619974f2836c65ff7dcc10f63224d64.png)
![](https://img-blog.csdnimg.cn/img_convert/facad2076c1f34e049e956862fccadcf.png)
![](https://img-blog.csdnimg.cn/img_convert/2e5b0b17b02a621773521a171dce7a9d.png)
![](https://img-blog.csdnimg.cn/img_convert/25f8d9c3e26a24390bfb0bc0e2591874.png)
![](https://img-blog.csdnimg.cn/img_convert/ea60b0690b2919ebf58d477cd4a647d3.png)
![](https://img-blog.csdnimg.cn/img_convert/5d6f1f37f42be3c4303b01e548de1abf.png)
![](https://img-blog.csdnimg.cn/img_convert/8c5d3d4fa3a9d0cfd8a780ce22356c1f.png)
![](https://img-blog.csdnimg.cn/img_convert/d40dc045780cb0368fe4db09a1a04f9f.png)
单行注释// 多行注释/* */ 文档注释 /** */
字面量的描述
变量:
变量就像一个盒子 一开始里面存储的值是6.0
然后往下走去看盒子里面的值 6.0
往下走先执行等号右边 右边继续拿money里的值 把6.0取出来与4.0作运算
然后算出来的结果是10.0
然后把10.0重新存储到变量的盒子里 然后访问变量10.0