¿¹Á¦

public static void main( String[] args ) {
loop( Integer.parseInt( args[ 0 ] ) );
}

private static void loop( int iMax ) {
iMax = Math.max( iMax, 20 );
for ( int i = 0; i < iMax; ) {
System.out.println( i );
}
}

¼Ö·ç¼Ç
¸Þ¼Òµå ¸Å°³º¯¼ö °ªÀ» º¯°æÇÏ´Â ´ë½Å ´Ù¸¥ º¯¼ö¸¦ µµÀÔÇϽʽÿÀ.

public static void main( String[] args ) {
loop( Integer.parseInt( args[ 0 ] ) );
}

private static void loop( int iMax ) {
int iBoundedMax = Math.max( iMax, 20 );
for ( int i = 0; i < iBoundedMax; ) {
System.out.println( i );
}
}