對不起,我的問題很難理解。因此,在一個陣列,如 的String [] ARR = {「ABS‘高清’,‘GHI’}; 我想知道如何能打印出此 一個 ê 我如何打印出字符串索引字符串中字符串的字符
這是我的代碼我試圖寫,但未能
public static void printCharsAt(String[] arr) {
System.out.println("how many inputs do you want in your array");
String array[] = {"hello", "Ap", "CS"};
System.out.println("What term of the array do you want, do you wan the first, 2nd, or third");
tnt char = kb.nextInt();
System.out.println(array[char]);
}