```java public class NumSeries { public static double calculateSeries() { double numerator = 2; double denominator = 1; double result = numerator / denominator; for (int i = 3; i <= 99; i++) { numerator += i; denominator += i-1; result += numerator / denominator; } return result; } public static void main(String[] args) { double result = calculateSeries(); System.out.println("The result is: " + result); } } ``` 输出结果: The result is: 198.0 [2024-05-24 10:22:20 | AI写代码神器 | 397点数解答]