摘要:
# 运算符 ``` java public class demo05 { public static void main(String[] args) { long a=123456788l; int b =520 ; short c= 20; byte d=10; System.out.print 阅读全文
摘要:
public class demo02 { public static void main(String[] args) { //整数拓展: 进制:二进制0b 八进制0 十进制 十六进制0x int i=0b10; int i1=010; int i2=0x10; System.out.printl 阅读全文
摘要:
public class demo01 { public static void main(String[] args) { //类名可用中文也可用英文,但是不建议用中文 String 王者荣耀="百星王者"; //String 王者荣耀="倔强青铜"; //大小写敏感,大写和小写完全是两个类名 S 阅读全文
摘要:
Hello world 1.随便新建一个文件夹,存放代码 2.新建一个java文件 。后缀名为.java 。Hello.java 。【注意点】系统没显示后缀名的可以自己手动打开 3.编写代码 public class Hello{ public static void main(String[] a 阅读全文