|
11. | the compiler normally takes exponential numbers as doubles, so without the trailing f it will give you an error telling you that you must use a cast to convert double to float. |
| 编译器通常会将指数作为双精度数(double)处理,所以假如没有这个尾随的f,就会收到一条出错提示,告诉我们须用一个“造型”将double转换成float。 |
|
|
| |
12. | The first thing you will see are some shorthand methods for printing: the prt( ) method prints a String, the pInt( ) prints a String followed by an int and the pFlt( ) prints a String followed by a float. |
| 我们注意到的第一件事情就是用于打印(显示)的一些快捷方法:prt()方法打印一个String; pInt()先打印一个String,再打印一个int; 而pFlt()先打印一个String,再打印一个float |
|
|
| |