728x90
포멧을 이용한 출력
C언어에서 사용하던 printf() 메서드를 지원한다.
C언어에서 사용하던 printf() 메서드를 지원한다.
class FormatPrintTest
{
public static void main( String [] args )
{
System.out.printf("%s %d","Hello",123);
}// end main
}
class FormatPrintTest
{
public static void main( String [] args )
{
System.out.printf("%s %d","Hello",123);
}// end main
}
Java 1.4버전 | Java 1.5버전 이후 |
int a = 10; Integer A = new Integer(a); |
Integer A = 10; |
Integer B = new Integer(10); int b = B.intValue(); |
Integer B = new Integer(20); int b = B; |