String myString = "Hello World"; String lastChar = myString.substring(myString.length() - 1); cs Enter fullscreen mode Exit fullscreen mode 참고 : https://doctorson0309.tistory.com/792