You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
public class Jb02_VarDemo1
|
|
|
|
|
{
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
byte 1<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
boolean 1<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
short 2<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
char 2<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
int 4<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
float 4<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
long 8<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
double 8<EFBFBD>ֽ<EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = <20><>ʼ<EFBFBD><CABC>ֵ;
|
|
|
|
|
byte b = 1; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>b,<2C><>ʼ<EFBFBD><CABC>ֵΪ1
|
|
|
|
|
short s = 2;
|
|
|
|
|
int i = 3;
|
|
|
|
|
long l = 4;
|
|
|
|
|
float f = 5.5f;
|
|
|
|
|
double d = 6.6;
|
|
|
|
|
char c = 'c';
|
|
|
|
|
boolean bo = true;
|
|
|
|
|
bo = false;
|
|
|
|
|
{
|
|
|
|
|
int x = 9;
|
|
|
|
|
System.out.println("x"); //<2F>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>x
|
|
|
|
|
}
|
|
|
|
|
System.out.println(c);
|
|
|
|
|
}
|
|
|
|
|
}
|