Java14 [Java] getPathInfo() getRequestURI() getServletPath() 차이 요청원문 http://30thh.loc:8480/app/test%3F/a%3F+b;jsessionid=S%3F+ID?p+1=c+d&p+2=e+f#a getPathInfo() /a?+b getRequestURI() /app/test%3F/a%3F+b;jsessionid=S+ID getServletPath() /test? ref : https://stackoverflow.com/questions/4931323/whats-the-difference-between-getrequesturi-and-getpathinfo-methods-in-httpservl 2023. 2. 21. [JXLS] jx:if 사용법 jx:if(condition="employee.payment 2022. 12. 15. [Java] List를 List를 포함한 Map으로 바꾸기 List를 Map로 바꾸기 public Map getMap(List strings) { return strings.stream().collect( Collectors.groupingBy(String::length, HashMap::new, Collectors.toCollection(ArrayList::new)) ); } ref : https://stackoverflow.com/questions/40772997/how-to-convert-listv-into-mapk-listv-with-java-8-streams-and-custom-list 2022. 11. 14. [Java] 문자열을 문자 배열로, 문자 배열을 문자열로 변환 String str = "someString"; char[] charArray = str.toCharArray(); // 문자 배열로 변환 String test = new String(charArray); // 문자열로 재변환 참고 : 프로그래머스 가위 바위 보 2022. 11. 7. 이전 1 2 3 4 다음