[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 참고를 위한 저장물
2015-03-10 andrew centos 에서 vsftpd passive mode 셋팅vsftpd 셋팅을 다 하고 나서 아래와 같은 접속 오류 발생 Error: Failed to retrieve directory listing 내용은 Passive mode로 접속이...
2014-12-28 andrew [펌]How to enable EPEL repo on CentOS 5 & 6To enable EPEL (Extra Packages for Enterprise Linux) for CentOS 5 x86 or x64, log in to SSH on your...