DEV Community

sunj
sunj

Posted on

java, string의 마지막 문자, 2023-01-16

String myString = "Hello World";
String lastChar = myString.substring(myString.length() - 1);
cs
Enter fullscreen mode Exit fullscreen mode

참고 : https://doctorson0309.tistory.com/792

Top comments (0)