Skip to content

Commit

Permalink
update JavaExample
Browse files Browse the repository at this point in the history
  • Loading branch information
BetterZhang committed Jun 28, 2017
1 parent 5ee5d2a commit ef810db
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
12 changes: 1 addition & 11 deletions src/com/betterzhang/learnkotlin/java/JavaExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,4 @@ int getScore2(int value) {
return 2 * value;
}

}

class Util {
private Util() {}
public static int getScore(int value) {
return 2 * value;
}
public static int triple(int value) {
return 3 * value;
}
}
}
22 changes: 22 additions & 0 deletions src/com/betterzhang/learnkotlin/java/Util.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.betterzhang.learnkotlin.java;

/**
* Created by IntelliJ IDEA.
* Author : Andrew Zhang
* Email : betterzhang.dev@gmail.com
* Time : 2017/06/28 上午 10:37
* Desc : description
*/
public class Util {

private Util() {}

public static int getScore(int value) {
return 2 * value;
}

public static int triple(int value) {
return 3 * value;
}

}

0 comments on commit ef810db

Please sign in to comment.