摘要:
package com.yingcan.scanner;import java.util.Scanner;public class Deamo02 { public static void main(String[] args) { //从键盘接收数据 Scanner scanner = new S 阅读全文
摘要:
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 阅读全文
摘要:
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); 阅读全文
摘要:
public class deamo3 { //属性;变量 //实例变量:从属于对象 如果没有设定初始值,则按照默认值进行 //布尔值默认为false /**除了基本类型其他的初始值都为null(空白) * 基本类型(byte short int long char float double boo 阅读全文
摘要:
public class deamo2 { public static void main(String[] args) { int i =128; byte b =(byte)i; System.out.println(i); System.out.println(b); //强制转换(变量名称) 阅读全文
摘要:
public class deamo2 { public static void main(String[] args) { int i =128; byte b =(byte)i; System.out.println(i); System.out.println(b); //强制转换(变量名称) 阅读全文