Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit d0fa43a

Browse files
authored
한글화
1 parent ad980ac commit d0fa43a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package effectivejava.chapter9.item60;
22

33
public class IntChange {
4+
// 코드 60-3 정수 타입을 사용한 해법 (357쪽)
45
public static void main(String[] args) {
56
int itemsBought = 0;
67
int funds = 100;
78
for (int price = 10; funds >= price; price += 10) {
89
funds -= price;
910
itemsBought++;
1011
}
11-
System.out.println(itemsBought + " items bought.");
12-
System.out.println("Cash left over: " + funds + " cents");
12+
System.out.println(itemsBought + "개 구입");
13+
System.out.println("잔돈(센트): " + funds);
1314
}
1415
}

0 commit comments

Comments
 (0)