假设我有很多变量
String not_id, not_section, not_steet, not_sqTotal, not_sqLiving, not_sqKitchen, not_flat, not_floor, not_floors, not_text, user_phone1, user_phone2, user_contact, not_region, not_district, not_settle, not_price, not_photo, not_date, not_date_till, not_up, not_premium, not_status;
not_id= not_section= not_steet= not_sqTotal= not_sqLiving=
not_sqKitchen= not_flat= not_floor= not_floors= not_text=
user_phone1= user_phone2= user_contact= not_region= not_district=
not_settle= not_price= not_photo= not_date= not_date_till= not_up=
not_premium= not_status=region_title=district_title=settle_title=section_title="";
我需要使用 someFunction 更改它们的值
not_id = someFunction(not_id);
我怎样才能对所有变量执行这样的操作?
如果假设将变量名称更改为某个统一名称,请不要建议使用数组、列表和其他类型的集合。
我想知道在 java 本身、eclipse ide 或 eclipse 插件中是否存在这种可能性。