diff options
Diffstat (limited to 'examples/src/main/java/spark/mllib/JavaALS.java')
-rw-r--r-- | examples/src/main/java/spark/mllib/JavaALS.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/main/java/spark/mllib/JavaALS.java b/examples/src/main/java/spark/mllib/JavaALS.java index 8be079ad39..b48f459cb7 100644 --- a/examples/src/main/java/spark/mllib/JavaALS.java +++ b/examples/src/main/java/spark/mllib/JavaALS.java @@ -39,9 +39,9 @@ public class JavaALS { static class ParseRating extends Function<String, Rating> { public Rating call(String line) { StringTokenizer tok = new StringTokenizer(line, ","); - Integer x = Integer.parseInt(tok.nextToken()); - Integer y = Integer.parseInt(tok.nextToken()); - Double rating = Double.parseDouble(tok.nextToken()); + int x = Integer.parseInt(tok.nextToken()); + int y = Integer.parseInt(tok.nextToken()); + double rating = Double.parseDouble(tok.nextToken()); return new Rating(x, y, rating); } } |