摘要:
Java方法 System.out.println() Java方法是语句的集合,它们在一起执行一个功能 package com.xu.method; public class Demo01 { //main方法 public static void main(String[] args) { in 阅读全文
摘要:
package operator; public class Demo01 { public static void main(String[] args) { // 二元运算符 // ctrl+D 快速复制到下一行 int a = 10 ; int b = 20 ; int c = 25 ; in 阅读全文
摘要:
类型转换 public class Demo05 { public static void main(String[] args) { int i = 128; //byte b = (byte)i; //内存溢出 double b = i; //强制转换 <(类型)变量名> 高--低 //自动转换 阅读全文