Skip to content

Commit

Permalink
Всё работает кроме switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Relect committed Jun 4, 2020
1 parent f1da989 commit 8b7d95b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/Service.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import java.util.ArrayList;

public class Service {
// get key
public static ArrayList<String> key (String json){
ArrayList<String> result = new ArrayList<String>();
while (!json.startsWith("}")){
Expand All @@ -13,6 +14,7 @@ public static ArrayList<String> key (String json){
}
return result;
}
// get value
public static ArrayList<String > value(String json){
ArrayList<String> result = new ArrayList<String>();
while (!json.startsWith("}")){
Expand All @@ -27,5 +29,5 @@ public static ArrayList<String > value(String json){
}
return result;
}

}

0 comments on commit 8b7d95b

Please sign in to comment.