要求重新設計這兩個Java類以避免代碼重複並提高可維護性。 public class Adder {
public int sum(int[] array) {
int result = 0;
for (int i = 0; i < array.length; i++) {
result += array[i];
}
return re
這裏是我當前的代碼: Dim strDestinationFile As String
Dim The_file As String
MyOldName = WHAT CAN I PUT HERE <--
MyNewName = strDestinationFile
Sheets("NAME OF SHEET").Select
Range("I2").Select
The_file