import java.lang.reflect.Field
public class test {
byte i = 1
int j = i
int w
/**
* @param args
*/
public static void main(String[] args) {
try {
Field[] a = test.class.getDeclaredFields()
for(int i = 0 i < a.length i++){
if(a[i].getType().getName().equals("int"))
System.out.println( a[i].getName())
}
if(a[i].getType().getName().equals("byte"))
System.out.println( a[i].getName())
}
} catch (Exception e) {
System.out.println(e.toString())
}
}
}
import java.lang.reflect.Fieldpublic class test {
byte i = 1
int j = i
int w
/**
* @param args
*/
public static void main(String[] args) {
try {
Field[] a = test.class.getDeclaredFields()
for(int i = 0 i < a.length i++){
if(a[i].getType().getName().equals("int"))
System.out.println( a[i].getName())
}
if(a[i].getType().getName().equals("byte"))
System.out.println( a[i].getName())
}
} catch (Exception e) {
System.out.println(e.toString())
}
}
}