为啥我不能定义两次three
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
int three = one+two ;
System.out.println("three = one + two ==> "+ three);
}
}
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
int three = one+two ;
System.out.println("three = one + two ==> "+ three);
}
}
2018-01-08
举报