二个数据类型转换的问题
public class Testkk
{
public static void main(String[] args)
{
int aa[]=new int[4];
int c;
System.out.println("请输入数字");
try{
String str1="";
for(int i=0;i<aa.length;i++)
{
c=System.in.read();
aa[i]=c;
str1=str1+c;
}
System.out.println(str1.toString());
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}
}
两个问题,怎样得到的结果是字符,2怎样得到的结果会相加的总和!怎样对它进行类型包装