为什么报错说mykito未被赋值
package practice;
public class Test { public static void main(String[] args){
Test tom=new Test();
int mykito=tom.kito();
}
public int kito(){ return 0; }
}
为什么报错说mykito未被赋值 报错:the value of the local variable mykito is not used
package practice;
public class Test { public static void main(String[] args){
Test tom=new Test();
int mykito=tom.kito();
}
public int kito(){ return 0; }
}
为什么报错说mykito未被赋值 报错:the value of the local variable mykito is not used
2015-10-19
举报