This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of use: remove(i, savedProfiles); | |
public static JSONArray remove(final int idx, final JSONArray from) { | |
final List<JSONObject> objs = asList(from); | |
objs.remove(idx); | |
final JSONArray ja = new JSONArray(); | |
for (final JSONObject obj : objs) { | |
ja.put(obj); | |
} |