먼저 다음 코드에서 및 인 문자를 바꿉니 까? 나는 그것을 어떻게하는지 모른다. (초보자입니다.) 고맙습니다. (. 나는 이미 이전 라인에 사용 된 바와 같이, 내 modifiedValue = temp.substring(0, 6);
라인이 잘못 알고)첫 번째 및 마지막 Char?
public void switched() {
String temp;
String modifiedValue;
temp = inputField.getText();
modifiedValue = temp.substring(0, 6);
outputArea.append("With first char last and last char first:\n");
outputArea.append("\t" + modifiedValue + "\n");
outputArea.append("\n");
} // end of switched()