Skip to content

Commit 0b3e565

Browse files
committed
Apparently we are doing integers, not doubles :D
1 parent cbc472d commit 0b3e565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Fun Problems/Rohan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import java.util.*;
33

44
public class FunProblems {
5-
double toDouble(String str) {
6-
return Double.parseDouble(str);
5+
int toInt(String str) {
6+
return Integer.parseInt(str);
77
}
88

99
String toString(double x) {

0 commit comments

Comments
 (0)