250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Tomcat
- Thymeleaf
- JDBC
- Open Source
- 오픈소스
- Eclipse
- IntelliJ
- maven
- PostgreSQL
- spring
- Exception
- ubuntu
- Spring Boot
- STS
- 설정
- oracle
- JavaScript
- git
- MySQL
- jpa
- Source
- error
- Docker
- Python
- MSSQL
- SpringBoot
- 문서
- AJAX
- myBatis
- Core Java
Archives
- Today
- Total
목록substring (1)
헤르메스 LIFE
[Source] 문자열 관련 Sample
substring의 사용은 항상 헛갈립니다. 그래서, 적어두고 찾아봅니다. import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class StringSample { static Logger logger = LoggerFactory.getLogger( StringSample.class ); public static void main( String[] args ) { String input1 = "abcd"; String input2 = "ABCD"; String output = ""; // 마지막 문자삭제 if ( input1.length() > 0 ) { output = input1.substring( 0, input1.length() - 1..
Core Java
2020. 12. 22. 09:20