package learn;
public class Text1 {
public static void main(String[] args) {
/* long starttime=System.currentTimeMillis();
for(int i=0;i<1000000;i++)
{
int t=0;
t++;
}
long end=System.currentTimeMillis();
System.out.println(end-starttime);
// TODO Auto-generated method stub
**/
byte[]b=new byte[3];
b[0]='a';
b[1]='b';
b[3]='h';
StringBuffer sb=new StringBuffer().append(b);
System.out.println(sb.toString());
}
}
报错空指针异常, 问题出哪啊 求大神
努力进黑马~!!!!面试已过 |