1.java有8种基本数据类型: 数值型:整数类型(byte,short,int,long) :浮点类型(float,double) 字符型:char 布尔型:true,false 2.char: 定义字符型变量时,用‘’单引号,char x='a'; String:定义字符串型变量时,用“”双引号,String str=“a”; 例如: char a[]={'s','t','u','d','e','n','t'}; //1) String s=new String(a); //2) Stri…