我有一个要求,要在数组结构中分配值,要避免集合,
testFunction(String userName,String Password,String status)
{
String[] array;
if(password==null)
{
array={"username",username_variable,"status",status_variable}
}
else
{
array={"username",userName,"password",password,"status",status}
}
}