![](/img/trans.png)
[英]How do I troubleshoot an OutOfBoundsException error when trying to get initials from a full name in Java?
大學計算機科學專業在這里。 我正在使用 zyBooks 進行我的面向對象編程 class。當我嘗試使用子字符串時,當我被要求從全名派生首字母時,我遇到了一個錯誤。 我被要求執行以下操作編寫一個名為 getInitials 的公共 static 方法,它將接受一個字符串類型的參數並返回一個字符串。 ...