1. String.format의 성능 문제와 개선 사항들 [ String.format 이란? ]Java 기본 라이브러리에서 제공하는 String 클래스에는 format이라는 메서드가 있다. String.format()은 지정한 포맷 문자열과 인자를 통해 서식을 적용한 문자열을 반환한다. 예를 들어 다음과 같은 코드가 있다고 하자.public class Main { public static void main(String[] args) { String formatted = String.format("Hello and welcome %d!", 2026); System.out.println(formatted); }} 위의 코드를 실행하면 다음과 같은 결과가 출력된다.Hell..
Java & Kotlin
2026. 10. 6. 10:00