首先你要知道变量和常量是如何区分的?常量一般是以 final static int A = 12 ; 而变量 int name = 45 ;
得考虑很多因素。很难实现啊。 看看这个package com.xlh.read;public class TestSource { final static int A = 12 ;int t = 45 ; final static int TD = 45 ; int name = 45 ; String type ; private long number ; public static void main(String args[]) { if (true){int i=12;} } }
看看这个package com.xlh.read;public class TestSource { final static int A = 12 ;int t = 45 ;
final static int TD = 45 ;
int name = 45 ;
String type ;
private long number ;
public static void main(String args[]) {
if (true){int i=12;}
}
}