Printf 와 SimpleFormatDate
http://blog.naver.com/burberry5/90132916326
달력
http://blog.naver.com/burberry5/90132916893
public class PrintEx {
public static void main(String[] args) {
char ch = '가';
int i = 77;
float f= 3.33f;
String str="가나다";
System.out.printf("문자 ch=%c입니다\n",ch);
System.out.printf("문자열 str=%s입니다\n",str);
System.out.printf("실수 f=%f, %e입니다\n",f,f);
System.out.printf("문자 ch=%c입니다\n문자열 str=%s입니다\n 실수 f=%f, %e입니다\n",ch,str,f,f);
//"10진수 100은 8진수로 xx이고, 16진수는 xx입니다.)
System.out.printf("10진수 %d은 8진수로 %o이고, 16진수로 %x \n",i,i,i);
}
}
이 글은 스프링노트에서 작성되었습니다.
'JAVA' 카테고리의 다른 글
Socket Simple 채팅 프로그램 (0) | 2012.05.15 |
---|---|
SMS 보내기 (0) | 2012.05.15 |
passwd 암호화 (0) | 2012.05.15 |
OS CPU MEMORY 값 보여주기 (0) | 2012.05.15 |
유니코드 표 (0) | 2012.05.08 |