💬 LANGUAGES/JAVA

[JAVA] 문자열

삶감 2022. 7. 5. 09:56
  • String type = name.substring(name.lastIndexOf(".")+1);
    "." 다음 문자열들만 남김
    ex) name="hello.jpg" => type="jpg"
728x90
728x90