- 博客(5)
- 收藏
- 关注
原创 Strong Type Conversion
Java has implicit type conversions in built for most of the convertable types, such as conversion from int to long, and byte to short, int and long, float to double and even char to int. But never from a short to byte, doing so would cause a compilation e
2021-09-02 10:01:44 101
原创 编程中英文单词
中文 英文 指令行 Command Line Java 开发工具包 JDK Java 运行环境 JRE (反)编译 (De)Compile 源代码 Source Code 字节码 ByteCode 类 Class 公共 Public 静态 Static 空 Void 主要 Main 字符串 String 参数 args 方法 method 花括号 {}
2021-09-02 09:24:40 70
原创 Java.lang.Math.random()
double random = Math.random() 默认出来的是一个double类型,范围为 [0,1) (代表零到一不含一) 为了扩大范围和调整范围区域,可以用数学公式来改造范围。 使用 Math.random() * x 可以造成 [0.0x,1.0x) 的效果。 使用 Math.random() + x 可以造成 [0.0 + x, 1.0 + x) 的效果。 混合在一起 (Math.random() * x) + y 能达到 【0.0x + y,1..
2021-09-02 09:22:14 329
原创 Java Types 和 Scanner
Java的变量类分成8个基本类: - byte 8位数 使用2^8 ,限制为-128 到 127 (2^8-1) - short 短数字 (16位数)限制为 -32768到 32767(2^16-1) - int Integer的缩减(32位数)java默认正数字 - long 长数字(64位数)使用时用“数字L”来区分 - float (32位数漂浮符号)使用时用“数字f”格式来...
2021-08-30 17:16:51 62
原创 Java: The Start
Java is a multi platform tool, any machine that can run Java VM (Virtual Machine) can therefore run a Java program. Like other High-level programming languages, Java requires the use of a compiler to transform human readable text into machine ones. Howeve
2021-08-27 13:07:11 61
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人