|
@ -130,11 +130,11 @@ public class TasksFrame extends JFrame { |
|
|
|
|
|
|
|
|
public int roundSum(int a, int b, int c) { |
|
|
public int roundSum(int a, int b, int c) { |
|
|
|
|
|
|
|
|
return runde10(a) + runde10(b) + runde10(c); |
|
|
|
|
|
|
|
|
return round10(a) + round10(b) + round10(c); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public int runde10(int n) { |
|
|
|
|
|
|
|
|
public int round10(int n) { |
|
|
if (n % 10 >= 5) { |
|
|
if (n % 10 >= 5) { |
|
|
return n + 10 - n % 10; |
|
|
return n + 10 - n % 10; |
|
|
} |
|
|
} |
|
|