We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 552a994 commit 020cd81Copy full SHA for 020cd81
com.vogella.java.library.okhttp/src/com/vogella/java/library/okhttp/TestMain.java
@@ -11,8 +11,7 @@
11
12
public class TestMain {
13
OkHttpClient client = new OkHttpClient();
14
- public static final MediaType JSON
15
- = MediaType.parse("application/json; charset=utf-8");
+
16
17
String doGetRequest(String url) throws IOException {
18
Request request = new Request.Builder()
@@ -23,6 +22,9 @@ String doGetRequest(String url) throws IOException {
23
22
return response.body().string();
24
}
25
+ public static final MediaType JSON
26
+ = MediaType.parse("application/json; charset=utf-8");
27
28
// test data
29
String bowlingJson(String player1, String player2) {
30
return "{'winCondition':'HIGH_SCORE',"
0 commit comments