下面一段程序: public static char charAt(St...
发布于 2022-03-03 16:43:47
下面一段程序:
public static char charAt(String s, int n, int m) { if (n == 1) return s.charAt(m) char first = charAt(s, n / 2, m * 2) char second = charAt(s, n / 2, m * 2 + 1) System.out.print(first + "-" + second + "-") return first }
执行语句System.out.println (charAt("helloworld",5,1))的输出为()
关注者
0
被浏览
16