[JAVA] 자릿수 만큼 0으로 채우기.. 예를 들어.. 3자리수를 표현한다고 하면, 001,002,010 뭐 이런식으로 표현하고 싶을때가 있다. (일련번호등을 표시할때 ) 아래와 같이 하면 쉽게 표현할 수 있다. int serial = 3; String suffix = String.format(“%03d”, serial); System.out.println(suffix); 결과는 “003” Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related Posted on 2014-08-18 10:23 AM by andrew Comment 📂This entry was posted in JAVA 참고를 위한 저장물
2014-08-07 andrew [MFC] 내부 창끼리 메시지 송수신클래스간 데이터 전달을 하는 방법이 무엇이 있을까. 1. 전역변수 2. 헤더 include 후 변수 접근 3. SendMessage SendMessage를 이용하면 클래스간 데이터...
2014-11-03 andrew Unity 3D + Android + SQLite ExamplesEnglish Sign in Home Unity Industries Showcase Asset Store Learn Community Download Buy Unity 3D + A...