摘要: **第一 package com.yingcan.Reward;import java.util.Scanner;public class Demo01 { public static void main(String[] args) { Scanner scanner = new Scanner( 阅读全文
posted @ 2021-10-12 19:48 莹-灿 阅读(33) 评论(0) 推荐(0)
摘要: package com.yingcan.scanner;import java.util.Scanner;public class Deamo02 { public static void main(String[] args) { //从键盘接收数据 Scanner scanner = new S 阅读全文
posted @ 2021-10-10 22:28 莹-灿 阅读(24) 评论(0) 推荐(0)
摘要: public class reward { byte age1; short age2; int age3; long age4; char age5; float age6; double age7; boolean age8; String age9; static final double W 阅读全文
posted @ 2021-10-04 16:38 莹-灿 阅读(484) 评论(0) 推荐(0)
摘要: package OPERATOR;public class Deamo01 { public static void main(String[] args) { int a =10; int b =20; int c =25; int d =25; System.out.println(a+b); 阅读全文
posted @ 2021-10-04 16:37 莹-灿 阅读(96) 评论(0) 推荐(0)
摘要: public class deamo3 { //属性;变量 //实例变量:从属于对象 如果没有设定初始值,则按照默认值进行 //布尔值默认为false /**除了基本类型其他的初始值都为null(空白) * 基本类型(byte short int long char float double boo 阅读全文
posted @ 2021-10-04 16:34 莹-灿 阅读(94) 评论(0) 推荐(0)
摘要: public class deamo1 { public static void main(String[] args) { System.out.println("Hello\tWorld"); char c1 ='你'; System.out.println((int)c1); char c2 阅读全文
posted @ 2021-10-04 16:33 莹-灿 阅读(60) 评论(0) 推荐(0)
摘要: public class deamo2 { public static void main(String[] args) { int i =128; byte b =(byte)i; System.out.println(i); System.out.println(b); //强制转换(变量名称) 阅读全文
posted @ 2021-10-04 16:33 莹-灿 阅读(49) 评论(0) 推荐(0)
摘要: public class deamo2 { public static void main(String[] args) { int i =128; byte b =(byte)i; System.out.println(i); System.out.println(b); //强制转换(变量名称) 阅读全文
posted @ 2021-10-04 16:32 莹-灿 阅读(270) 评论(0) 推荐(0)
摘要: public class deamo { public static void main(String[] args) { System.out.println("Hello World"); //这个是输出Hello的命令 /*这个是多层注释的符号 */ /**这个是文件名的注释符号 */ Str 阅读全文
posted @ 2021-10-02 22:02 莹-灿 阅读(45) 评论(0) 推荐(0)